Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (13 sloc) 460 Bytes
# We import * from simulator here because * is imported from simulator_init by
# numba.cuda.__init__.
from .simulator import * # noqa: F403, F401
def is_available():
"""Returns a boolean to indicate the availability of a CUDA GPU.
"""
# Simulator is always available
return True
def cuda_error():
"""Returns None or an exception if the CUDA driver fails to initialize.
"""
# Simulator never fails to initialize
return None
You can’t perform that action at this time.