-
Notifications
You must be signed in to change notification settings - Fork 748
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
Google Colab With Cuda 12.4 and Numba gives - CUDA_ERROR_UNSUPPORTED_PTX_VERSION #5081
Comments
When looking a bit futher I expect the issue to be that the Nvidia T4 Driver (550.54.15) only supports CUDA 12.4 as far as I can find on the NVIDIA page (link) After updating cuda in google colab to 12.8 the error changes slightly (from unsupported version 8.5 to 8.7 so it has to do something with the version of CUDA installed in google colab:
|
Short-term workaround: In the colab, switch to the fallback version in the Command palette. It changes the CUDA runtime to 12.2 (I met the same issue today and this works for me) |
@mnielsm Thanks for filing the issue and thanks for using Colab. If you'd like to use !uv pip install -q --system numba-cuda==0.4.0 And to ensure that from numba import config
config.CUDA_ENABLE_PYNVJITLINK = 1 Example: Also, as aside, for small examples, you can hide the low occupancy warnings, if desired, by specifying: config.CUDA_LOW_OCCUPANCY_WARNINGS = 0 We will consider pre-installing |
Well I was doubtful this would do it but it seems to work fine indeed with the numba-cuda package. |
Re: #5061, great to hear! |
it worked for me also. many thanks!! |
Add '--force-reinstall' after the command. It helped me |
It worked! |
Super Helpful, Thanks |
Describe the current behavior
I am using NUMBA on the GPU and as of a couple of days it no longer works in google colab.
The following code worked fine before and now it doesn't any more.
Describe the expected behavior
It shows an error about CUDA_ERROR_UNSUPPORTED_PTX_VERSION which seems to come from the CUDA driver.
What web browser you are using
Doesn't matter for this bug
Additional context
Crossposted to the NVIDIA NUMBA CUDA github as bug (link)
The text was updated successfully, but these errors were encountered: