We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As of Feb 13th 2025 the latest numba release 0.61.0 is not compatible with the Google Colab GPU runtime.
numba
0.61.0
The first numba cell fails
import numpy as np from numba import cuda data = np.asarray(range(10)) output = np.zeros(len(data)) @cuda.jit def foo(input_array, output_array): i = cuda.grid(1) output_array[i] = input_array[i] foo[1, len(data)](data, output) output
/usr/local/lib/python3.11/dist-packages/numba_cuda/numba/cuda/dispatcher.py:536: NumbaPerformanceWarning: Grid size 1 will likely result in GPU under-utilization due to low occupancy. warn(NumbaPerformanceWarning(msg)) 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) 10 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'
The text was updated successfully, but these errors were encountered:
There is a workaround from googlecolab/colabtools#5081 where you upgrade the numba-cuda package and enable JIT link for compatibility.
numba-cuda
!uv pip install -q --system numba-cuda==0.4.0 from numba import config config.CUDA_ENABLE_PYNVJITLINK = 1
Sorry, something went wrong.
cc: @taureandyernv for visibility.
No branches or pull requests
As of Feb 13th 2025 the latest
numba
release0.61.0
is not compatible with the Google Colab GPU runtime.Reproducer
The first numba cell fails
The text was updated successfully, but these errors were encountered: