You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CUDASetup.get_instance.add_log_entry(f'ERROR: libcudart.so could not be read from path: {cudart_path}!')
42
+
CUDASetup.get_instance().add_log_entry(f'ERROR: libcudart.so could not be read from path: {cudart_path}!')
39
43
returnNone
40
44
41
45
version=ctypes.c_int()
@@ -55,7 +59,7 @@ def get_cuda_lib_handle():
55
59
try:
56
60
cuda=ctypes.CDLL("libcuda.so")
57
61
exceptOSError:
58
-
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!')
62
+
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
103
104
None.
104
105
"""
106
+
ifcudaisNone: returnNone
107
+
108
+
# TODO: handle different compute capabilities; for now, take the max
105
109
ccs=get_compute_capabilities(cuda)
106
-
ifccs:
107
-
# TODO: handle different compute capabilities; for now, take the max
108
-
returnccs[-1]
109
-
returnNone
110
+
ifccs: returnccs[-1]
110
111
111
112
112
113
defevaluate_cuda_setup():
@@ -116,28 +117,31 @@ def evaluate_cuda_setup():
116
117
#print('Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues')
117
118
#print('For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link')
0 commit comments