-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arbitrary CUDA versions in UDF code #15950
Support arbitrary CUDA versions in UDF code #15950
Conversation
ver_map = { | ||
"7.5": (11, 5), | ||
"7.6": (11, 6), | ||
"7.7": (11, 7), | ||
"7.8": (11, 8), | ||
"8.0": (12, 0), | ||
"8.1": (12, 1), | ||
"8.2": (12, 2), | ||
"8.3": (12, 3), | ||
"8.4": (12, 4), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main point of this PR is to get rid of this mapping!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me - I don't have enough Cython experience to comment on whether the CUDA build version should be obtained from a static int or a function, but I think the general idea here is sound.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bdice , longstanding issue that I'm happy to see solved cleanly.
Thanks for the feedback @gmarkall @brandon-b-miller! I applied your feedback on naming. I'll go ahead and merge once CI passes. |
/merge |
Description
This PR eliminates the manual mapping from PTX versions to CUDA versions, to help support CUDA 12.5 and newer without requiring a manual update to
_numba.py
for every CUDA release. This also updates the minimum compute capability PTX file from arch 60 to arch 70, since that is now the minimum required by RAPIDS.Checklist