From 3259104d23bcfa86eada57123c2f8bc6dab3ae44 Mon Sep 17 00:00:00 2001 From: Sergey Pokhodenko Date: Fri, 9 Oct 2020 03:31:13 +0300 Subject: [PATCH] dppl check GPU and CPU devices --- numba/dppl_config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/numba/dppl_config.py b/numba/dppl_config.py index 9947d3c1831..edcdb0bad4a 100644 --- a/numba/dppl_config.py +++ b/numba/dppl_config.py @@ -1,8 +1,5 @@ -dppl_present = False - try: import dpctl + dppl_present = dpctl.has_gpu_queues() and dpctl.has_cpu_queues() except: - pass -else: - dppl_present = True + dppl_present = False