Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit fc358e7

Browse files
authored
dppl check GPU and CPU devices (#71)
1 parent ec8862c commit fc358e7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎numba/dppl_config.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
dppl_present = False
2-
31
try:
42
import dpctl
3+
dppl_present = dpctl.has_gpu_queues() and dpctl.has_cpu_queues()
54
except:
6-
pass
7-
else:
8-
dppl_present = True
5+
dppl_present = False

0 commit comments

Comments
 (0)