We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 304931b commit 63ce96fCopy full SHA for 63ce96f
dpctl/ocldrv.py
@@ -526,11 +526,13 @@ def __new__(cls):
526
if cls._runtime[0][0].has_cpu:
527
cls._cpu_device = DeviceEnv(cls._runtime[0][0].first_cpu_env)
528
else:
529
+ cls._cpu_device = None
530
_logger.warning("No CPU device")
531
532
if cls._runtime[0][0].has_gpu:
533
cls._gpu_device = DeviceEnv(cls._runtime[0][0].first_gpu_env)
534
535
+ cls._gpu_device = None
536
_logger.warning("No GPU device")
537
538
cls._curr_device = DeviceEnv(cls._runtime[0][0].curr_env)
0 commit comments