GH-47371: [Python] Fix installation of Numba-CUDA in CI environment#47372
Open
gmarkall wants to merge 1 commit intoapache:mainfrom
Open
GH-47371: [Python] Fix installation of Numba-CUDA in CI environment#47372gmarkall wants to merge 1 commit intoapache:mainfrom
gmarkall wants to merge 1 commit intoapache:mainfrom
Conversation
…ment As per the Numba-CUDA docs, `numba-cuda` should be installed with a variant depending on the CUDA version. Failing to specify the variant leads to `numba-cuda` being installed without the CUDA toolkit wheels that it needs. This commit adds the variant specifier to the installation. I think Arrow is using CUDA 11.7 in CI images, so I've changed the Numba-CUDA version to 0.18.1, which is the last version to support CUDA 11 (the Numba-CUDA policy is to support all minor versions within the last two major versions of CUDA). IF Arrow moves to CUDA 12 for CI images, this could be changed back to `latest` in future. Numba-CUDA installation docs: https://nvidia.github.io/numba-cuda/user/installation.html
|
|
pitrou
reviewed
Aug 19, 2025
Comment on lines
+51
to
+56
| if [ "$#" -eq 3 ]; then | ||
| cuda=$3 | ||
| else | ||
| # Default to CUDA 11 | ||
| cuda=11 | ||
| fi |
Member
There was a problem hiding this comment.
I'm curious, is it possible to query the system to get the CUDA version instead of having to pass it explicitly?
Member
|
@github-actions crossbow submit -g python |
|
Revision: 260fef9 Submitted crossbow builds: ursacomputing/crossbow @ actions-5460fb5ce2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
As per the Numba-CUDA docs,
numba-cudashould be installed with a variant depending on the CUDA version. Failing to specify the variant leads tonumba-cudabeing installed without the CUDA toolkit wheels that it needs.Numba-CUDA installation docs: https://nvidia.github.io/numba-cuda/user/installation.html
What changes are included in this PR?
This commit adds the variant specifier to the installation.
I think Arrow is using CUDA 11.7 in CI images, so I've changed the Numba-CUDA version to 0.18.1, which is the last version to support CUDA 11 (the Numba-CUDA policy is to support all minor versions within the last two major versions of CUDA). If Arrow moves to CUDA 12 for CI images, this could be changed back to
latestin future.Are these changes tested?
Yes.
Are there any user-facing changes?
No.