ai-content-maker/.venv/Lib/site-packages/numba/cuda/simulator_init.py

18 lines
460 B
Python

# 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