Skip to content

Commit

Permalink
Fix conditional for non-nvidia gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Jul 24, 2024
1 parent 154247f commit a3b6e29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def normalize_gpu_configuration(self, attr, value, complete_config, contex
gpu['pci_slot']: gpu
for gpu in await self.middleware.call('app.gpu_choices_internal') if not gpu['error']
}
if not gpu_choices:
if not any(gpu['vendor'] != 'NVIDIA' for gpu in gpu_choices.values()):
value['use_all_gpus'] = False

for nvidia_gpu_pci_slot in list(value['nvidia_gpu_selection']):
Expand Down

0 comments on commit a3b6e29

Please sign in to comment.