Missing .lower() cause CUDA:0 to fail check where cuda:0 works.

This commit is contained in:
Marc-Andre Ferland 2022-10-29 04:33:14 -04:00
parent e818f5a93f
commit 03757632cf

View File

@ -96,7 +96,7 @@ def setConfig(config):
has_first_cuda_device = False
for device in gpu_devices:
if not task_manager.is_first_cuda_device(device): continue
if not task_manager.is_first_cuda_device(device.lower()): continue
has_first_cuda_device = True
break
if len(gpu_devices) > 0 and not has_first_cuda_device: