Skip to content

Update CUDA/ROCm setup tests#1899

Open
sstamenk wants to merge 3 commits intobitsandbytes-foundation:mainfrom
sstamenk:update_setup_tests
Open

Update CUDA/ROCm setup tests#1899
sstamenk wants to merge 3 commits intobitsandbytes-foundation:mainfrom
sstamenk:update_setup_tests

Conversation

@sstamenk
Copy link
Contributor

@sstamenk sstamenk commented Mar 13, 2026

Updated backend-specific setup handling and tests for CUDA/ROCm library selection. The change makes get_cuda_bnb_library_path() fail fast when the wrong override variable is used (BNB_ROCM_VERSION on CUDA or BNB_CUDA_VERSION on ROCm), improves the warning/error guidance, and refreshes the evaluator tests to use BNB_BACKEND with clearer CUDA/ROCm coverage.
Removed the test_get_rocm_bnb_library_path_rocm_override_takes_priority unit-test as it doesn't provide much utility.

This PR is a subset of the changes originally proposed in #1888

@matthewdouglas matthewdouglas added CUDA Setup ROCm CUDA Issues and PRs related to the CUDA backend, excluding installation/support help. labels Mar 17, 2026
@matthewdouglas matthewdouglas added this to the v0.50.0 milestone Mar 17, 2026
@github-actions
Copy link

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Labels

CUDA Setup CUDA Issues and PRs related to the CUDA backend, excluding installation/support help. ROCm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants