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

[Improvement] Fetch runtime version with cuda-python instead of numba #1675

Conversation

Matt711
Copy link
Contributor

@Matt711 Matt711 commented Sep 9, 2024

Description

Closes #948

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@Matt711 Matt711 requested a review from a team as a code owner September 9, 2024 23:24
@github-actions github-actions bot added the Python Related to RMM Python API label Sep 9, 2024
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Thanks!

@harrism harrism added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Sep 9, 2024
@Matt711
Copy link
Contributor Author

Matt711 commented Sep 10, 2024

Okay CI is failing is failing because cuda.cudart.getLocalRuntimeVersion() is raising a RuntimeError in cuda 11.8 devcontainer.

In [1]: from cuda import cudart

In [2]: cudart.getLocalRuntimeVersion()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[2], line 1
----> 1 cudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/cudart.pyx:24961, in cuda.cudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/ccudart.pyx:2365, in cuda.ccudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/_lib/ccudart/ccudart.pyx:2121, in cuda._lib.ccudart.ccudart._getLocalRuntimeVersion()

RuntimeError: Failed to dlopen libcudart.so.12

@Matt711
Copy link
Contributor Author

Matt711 commented Sep 11, 2024

Okay CI is failing is failing because cuda.cudart.getLocalRuntimeVersion() is raising a RuntimeError in cuda 11.8 devcontainer.

In [1]: from cuda import cudart

In [2]: cudart.getLocalRuntimeVersion()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[2], line 1
----> 1 cudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/cudart.pyx:24961, in cuda.cudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/ccudart.pyx:2365, in cuda.ccudart.getLocalRuntimeVersion()

File ~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/_lib/ccudart/ccudart.pyx:2121, in cuda._lib.ccudart.ccudart._getLocalRuntimeVersion()

RuntimeError: Failed to dlopen libcudart.so.12

We can merge this PR after NVIDIA/cuda-python#89 is closed.

@Matt711 Matt711 self-assigned this Sep 12, 2024
@Matt711 Matt711 changed the base branch from branch-24.10 to branch-24.12 September 24, 2024 12:41
@wence- wence- added the 0 - Blocked Cannot progress due to external reasons label Sep 30, 2024
@harrism
Copy link
Member

harrism commented Nov 19, 2024

This will need to move to 25.02. But is it unblocked now that NVIDIA/cuda-python#89 closed?

@Matt711
Copy link
Contributor Author

Matt711 commented Nov 19, 2024

This will need to move to 25.02. But is it unblocked now that NVIDIA/cuda-python#89 closed?

Yes, I think it also needs #1729

@wence- wence- changed the base branch from branch-24.12 to branch-25.02 November 28, 2024 15:27
@wence-
Copy link
Contributor

wence- commented Nov 28, 2024

Note that I think this means that numba can now be an optional installation dependency, rather than a required one.

@Matt711
Copy link
Contributor Author

Matt711 commented Dec 10, 2024

The changes in this PR have incorporated into #1756

@Matt711 Matt711 closed this Dec 10, 2024
rapids-bot bot pushed a commit that referenced this pull request Dec 10, 2024
Closes #1755.

Replaces #1675.

Authors:
  - Bradley Dice (https://github.com/bdice)
  - Matthew Murray (https://github.com/Matt711)

Approvers:
  - Matthew Murray (https://github.com/Matt711)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #1756
@bdice bdice mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Blocked Cannot progress due to external reasons improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Related to RMM Python API
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fetch runtime version with cuda-python instead of numba.
3 participants