Skip to content

ROCm 8.4 binary not found (latest ROCm is 7.14) #2014

Closed

Description

@aoguntayo

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.

Activity

  1. aoguntayo commented on Jul 20, 2026

    @aoguntayo
    Author

    Looks like #1889 fixes the issue

  2. matthewdouglas commented on Jul 21, 2026

    @matthewdouglas
    Member

    This is fixed in combination of #1889, #1980, and #2007. The latter adds ROCm 7.14 builds, while the prior two enable better detection and automatic fallback to load the 7.2 build in the absence of a newer build.

    These changes will be released to PyPI in v0.50.0 quite soon. In the meantime, we have wheels built from main that are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions