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

Collab version mismatch #48

Open
JaLnYn opened this issue Jan 30, 2025 · 2 comments
Open

Collab version mismatch #48

JaLnYn opened this issue Jan 30, 2025 · 2 comments

Comments

@JaLnYn
Copy link

JaLnYn commented Jan 30, 2025

ERROR:numba.cuda.cudadrv.driver:Call to cuLinkAddData results in CUDA_ERROR_UNSUPPORTED_PTX_VERSION
---------------------------------------------------------------------------
CudaAPIError                              Traceback (most recent call last)
[/usr/local/lib/python3.11/dist-packages/numba_cuda/numba/cuda/cudadrv/driver.py](https://localhost:8080/#) in add_ptx(self, ptx, name)
   2806         try:
-> 2807             driver.cuLinkAddData(self.handle, enums.CU_JIT_INPUT_PTX,
   2808                                  ptxbuf, len(ptx), namebuf, 0, None, None)

12 frames
CudaAPIError: [222] Call to cuLinkAddData results in CUDA_ERROR_UNSUPPORTED_PTX_VERSION

During handling of the above exception, another exception occurred:

LinkerError                               Traceback (most recent call last)
[/usr/local/lib/python3.11/dist-packages/numba_cuda/numba/cuda/cudadrv/driver.py](https://localhost:8080/#) in add_ptx(self, ptx, name)
   2808                                  ptxbuf, len(ptx), namebuf, 0, None, None)
   2809         except CudaAPIError as e:
-> 2810             raise LinkerError("%s\n%s" % (e, self.error_log))
   2811 
   2812     def add_file(self, path, kind):

LinkerError: [222] Call to cuLinkAddData results in CUDA_ERROR_UNSUPPORTED_PTX_VERSION
ptxas application ptx input, line 9; fatal   : Unsupported .version 8.5; current version is '8.4'

:(

@PuppyQ08
Copy link

Yes, I got this error too. Besides, it worked fine just yesterday. It looks like the numba is upgraded to use PTX 8.5 while the Tesla T4 GPU (Compute compatibility 7.5) doesn't support PTX 8.5

@PuppyQ08
Copy link

PuppyQ08 commented Feb 2, 2025

It is a temporary issue in Colab. Please see this ticket: https://github.com/googlecolab/colabtools/issues/5081
When we use "numba -s", it showed the CUDA driver is 12.4 while the CUDA runtime version is 12.5. So it is not compatible.
Solution: type "Use fallback runtime version" in the command palette would switch back to the old version with CUDA runtime 12.2. It works for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants