CUDASetup.get_instance.add_log_entry(f'ERROR: libcudart.so could not be read from path: {cudart_path}!')
CUDASetup.get_instance().add_log_entry(f'ERROR: libcudart.so could not be read from path: {cudart_path}!')
returnNone
returnNone
version=ctypes.c_int()
version=ctypes.c_int()
...
@@ -55,7 +59,7 @@ def get_cuda_lib_handle():
...
@@ -55,7 +59,7 @@ def get_cuda_lib_handle():
try:
try:
cuda=ctypes.CDLL("libcuda.so")
cuda=ctypes.CDLL("libcuda.so")
exceptOSError:
exceptOSError:
CUDA_RUNTIME_LIB.get_instance().add_log_entry('CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine!')
CUDASetup.get_instance().add_log_entry('CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine!')
capabilities are downwards compatible. If no GPUs are detected, it returns
capabilities are downwards compatible. If no GPUs are detected, it returns
None.
None.
"""
"""
ccs=get_compute_capabilities(cuda)
ifcudaisNone:returnNone
ifccs:
# TODO: handle different compute capabilities; for now, take the max
# TODO: handle different compute capabilities; for now, take the max
returnccs[-1]
ccs=get_compute_capabilities(cuda)
returnNone
ifccs:returnccs[-1]
defevaluate_cuda_setup():
defevaluate_cuda_setup():
...
@@ -116,28 +117,31 @@ def evaluate_cuda_setup():
...
@@ -116,28 +117,31 @@ def evaluate_cuda_setup():
#print('Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues')
#print('Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues')
#print('For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link')
#print('For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link')