We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8199049 commit b3de192Copy full SHA for b3de192
bitsandbytes/cuda_setup/main.py
@@ -268,7 +268,10 @@ def check_cuda_result(cuda, result_val):
268
if result_val != 0:
269
error_str = ct.c_char_p()
270
cuda.cuGetErrorString(result_val, ct.byref(error_str))
271
- CUDASetup.get_instance().add_log_entry(f"CUDA exception! Error code: {error_str.value.decode()}")
+ if error_str.value is not None:
272
+ CUDASetup.get_instance().add_log_entry(f"CUDA exception! Error code: {error_str.value.decode()}")
273
+ else:
274
+ CUDASetup.get_instance().add_log_entry(f"Unknown CUDA exception! Please check your CUDA install. It might also be that your GPU is too old.")
275
276
277
# https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART____VERSION.html#group__CUDART____VERSION
0 commit comments