System Info
- OS: RHEL 9.6
- Python version: 3.12.9
- ROCm version: 7.14
- GPU: MI350P
Reproduction
When trying to import bitsandbytes on a ROCm system, it fails to load due to a missing binary:
Installing collected packages: bitsandbytes
Successfully installed bitsandbytes-0.49.2
(app-root) /opt/app-root$ python -c 'import bitsandbytes'
bitsandbytes library load error: Configured ROCm binary not found at /opt/app-root/lib64/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm84.so
Traceback (most recent call last):
File "/opt/app-root/lib64/python3.12/site-packages/bitsandbytes/cextension.py", line 320, in <module>
lib = get_native_library()
^^^^^^^^^^^^^^^^^^^^
File "/opt/app-root/lib64/python3.12/site-packages/bitsandbytes/cextension.py", line 288, in get_native_library
raise RuntimeError(f"Configured {BNB_BACKEND} binary not found at {cuda_binary_path}")
RuntimeError: Configured ROCm binary not found at /opt/app-root/lib64/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm84.so
Build:
Hermatic build with network-isolation.
Similar case but different ROCm version (7.1)
#1799
Expected behavior
bitsandbytes should either:
Detect the available ROCm version (e.g., 7.14) and load the proper binary, or
Fall back gracefully with a clear message if no compatible ROCm build exists.
System Info
Reproduction
When trying to import bitsandbytes on a ROCm system, it fails to load due to a missing binary:
Build:
Hermatic build with network-isolation.
Similar case but different ROCm version (7.1)
#1799
Expected behavior
bitsandbytes should either:
Detect the available ROCm version (e.g., 7.14) and load the proper binary, or
Fall back gracefully with a clear message if no compatible ROCm build exists.