Commit 9180b4cc authored by Tim Dettmers's avatar Tim Dettmers
Browse files

Added additional error message for cudart error #85

parent dfb049f8
...@@ -281,7 +281,12 @@ def get_cuda_version(cuda, cudart_path): ...@@ -281,7 +281,12 @@ def get_cuda_version(cuda, cudart_path):
return None return None
version = ct.c_int() version = ct.c_int()
try:
check_cuda_result(cuda, cudart.cudaRuntimeGetVersion(ct.byref(version))) check_cuda_result(cuda, cudart.cudaRuntimeGetVersion(ct.byref(version)))
except AttributeError as e:
CUDASetup.get_instance().add_log_entry(f'ERROR: {str(e)}')
CUDASetup.get_instance().add_log_entry(f'CUDA SETUP: libcudart.so path is {cudart_path}')
CUDASetup.get_instance().add_log_entry(f'CUDA SETUP: Is seems that your cuda installation is not in your path. See https://github.com/TimDettmers/bitsandbytes/issues/85 for more information.')
version = int(version.value) version = int(version.value)
major = version//1000 major = version//1000
minor = (version-(major*1000))//10 minor = (version-(major*1000))//10
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment