Skip to content
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

Use numba to get CUDA runtime version. #946

Merged

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Jan 19, 2022

This PR uses numba to fetch the CUDA runtime version, rather than cuda-python.

The current implementation of cuda-python's cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This is a known limitation that may not be resolved in the near term. cc: @vzhurba01

@bdice bdice requested a review from a team as a code owner January 19, 2022 20:27
@github-actions github-actions bot added the Python Related to RMM Python API label Jan 19, 2022
@jakirkham
Copy link
Member

cc @shwina

@jakirkham
Copy link
Member

The current implementation of cuda-python's cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This is a known limitation that may not be resolved in the near term. cc: @vzhurba01

Can we please file an issue about this on cuda-python?

Co-authored-by: GALI PREM SAGAR <sagarprem75@gmail.com>
@bdice bdice force-pushed the fix/numba-cuda-runtime-version branch from 5d5ba85 to d4bae42 Compare January 19, 2022 20:33
@galipremsagar galipremsagar added non-breaking Non-breaking change bug Something isn't working labels Jan 19, 2022
@bdice
Copy link
Contributor Author

bdice commented Jan 19, 2022

The current implementation of cuda-python's cuda.cudart.cudaRuntimeGetVersion() hard-codes the runtime version, rather than querying the runtime for its version. This is a known limitation that may not be resolved in the near term. cc: @vzhurba01

Can we please file an issue about this on cuda-python?

Issue opened: NVIDIA/cuda-python#16

if status != cudart.cudaError_t.cudaSuccess:
raise CUDARuntimeError(status)
return version
# TODO: Replace this with `cuda.cudart.cudaRuntimeGetVersion()` when the
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should have an RMM issue about this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Done: #949

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue filed: #948

Copy link
Member

Choose a reason for hiding this comment

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

Thanks! 😄

@galipremsagar
Copy link
Contributor

@gpucibot merge

@rapids-bot rapids-bot bot merged commit d1d82b9 into rapidsai:branch-22.02 Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working non-breaking Non-breaking change Python Related to RMM Python API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants