-
-
Notifications
You must be signed in to change notification settings - Fork 766
Open
Open
Copy link
Labels
BuildCUDA SetupLinuxMedium Priority(will be worked on after all high priority issues)(will be worked on after all high priority issues)
Description
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:
- 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
ig0r and Titus-von-Koeller
Metadata
Metadata
Assignees
Labels
BuildCUDA SetupLinuxMedium Priority(will be worked on after all high priority issues)(will be worked on after all high priority issues)