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
You should have cuda installed somewhere else other than /usr/local/
export below environment variable
export PATH=/some_dir/cuda-12.3/bin:$PATH
export LD_LIBRARY_PATH=/some_dir/cuda-12.3/lib64:$LD_LIBRARY_PATH
export CUDA_HOME=/some_dir/cuda-12.3/ OR export CUDA_PATH=/some_dir/cuda-12.3/
python -m bitsandbytes
Output:
python -m bitsandbytes
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Traceback (most recent call last):
File "/sys_apps_01/python310/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/sys_apps_01/python310/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/dir1/venv/lib/python3.10/site-packages/bitsandbytes/__main__.py", line 96, in <module>
generate_bug_report_information()
File "/dir1/venv/lib/python3.10/site-packages/bitsandbytes/__main__.py", line 54, in generate_bug_report_information
paths = find_file_recursive('/usr/local', '*cuda*so')
File "/dir1/venv/lib/python3.10/site-packages/bitsandbytes/__main__.py", line 37, in find_file_recursive
raise RuntimeError('Something when wrong when trying to find file. Maybe you do not have a linux system?')
RuntimeError: Something when wrong when trying to find file. Maybe you do not have a linux system?
Expected behavior
Ideally, it should also look into CUDA_HOME or CUDA_PATH (IF SET) and try to find the *cuda*so files there recursively other than /usr/local
The text was updated successfully, but these errors were encountered:
I do agree - we would ideally want it to find the CUDA libraries even if they're in a non-standard path. Note that this command is just for diagnostics though, to aid in helping a user determine how to set LD_LIBRARY_PATH. That could use some reworking as most of the time the libraries are going to be shipped with the PyTorch binaries.
That said, this issue might not reproduce the same way in 0.43.0 (example here is 0.42.0).
System Info
Operating System: Oracle Linux 7.9
Python Version: 3.10.10
GPU: NVIDIA A100
CUDA: 12.3
bitandbytes: 0.42.0
Reproduction
To reproduce this issue:
Output:
Expected behavior
Ideally, it should also look into CUDA_HOME or CUDA_PATH (IF SET) and try to find the
*cuda*so
files there recursively other than/usr/local
The text was updated successfully, but these errors were encountered: