Skip to content

Raise better error when cuda.bindings are not available#294

Merged
kkraus14 merged 3 commits intoNVIDIA:mainfrom
brandon-b-miller:nv-binding-fail
Jun 12, 2025
Merged

Raise better error when cuda.bindings are not available#294
kkraus14 merged 3 commits intoNVIDIA:mainfrom
brandon-b-miller:nv-binding-fail

Conversation

@brandon-b-miller
Copy link
Contributor

Raises a better error with instructions of what to do if the base install is used and no user provided cuda bindings are present in the environment.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jun 12, 2025

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

"CUDA bindings not found. Please install through "
"the cuda-bindings[cuXY] package where XY is the "
"required CUDA version. Alternatively, install "
"numba-cuda-cuXY to install the required binding "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numba-cuda-cuXY doesn't exist. For pip there is numba-cuda[cuXY]. For conda, we should just make it all work out of the box where someone would need to forcibly break their environment to hit this error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For conda I think it should just work right? It should be a required run dependency now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update the upstream conda-forge recipe, but in the recipe published here, yes.

@gmarkall
Copy link
Contributor

/ok to test

@kkraus14 kkraus14 merged commit 8734e07 into NVIDIA:main Jun 12, 2025
39 checks passed
gmarkall added a commit to gmarkall/numba-cuda that referenced this pull request Jun 14, 2025
- NFC: Don't rely on `Dispatcher._compiler` API (NVIDIA#289)
- [DOCS] Improve the introduction and installation section of the documentation (NVIDIA#293)
- Fix `DeviceNDArray.device_ctypes_pointer` to always be ctypes (NVIDIA#295)
- Raise better error when `cuda.bindings` are not available (NVIDIA#294)
@gmarkall gmarkall mentioned this pull request Jun 14, 2025
gmarkall added a commit that referenced this pull request Jun 14, 2025
- NFC: Don't rely on `Dispatcher._compiler` API (#289)
- [DOCS] Improve the introduction and installation section of the documentation (#293)
- Fix `DeviceNDArray.device_ctypes_pointer` to always be ctypes (#295)
- Raise better error when `cuda.bindings` are not available (#294)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants