numba_dpex.device_init module
- numba_dpex.device_init.is_available()
Returns a boolean indicating if dpctl could find a default device.
A valueError is thrown by dpctl if no default device is found and it implies that numba-dpex cannot create a SYCL queue to compile kernels.
- Returns:
bool: True if a default SYCL device is found, otherwise False.