You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern"C"int__device__add(int *ret, int *left, int *right)
{
*ret = *left + *right;
return0;
}
Linker Error
Traceback (most recent call last):
File "/opt/venv/lib/python3.12/site-packages/pynvjitlink/api.py", line 84, in get_linked_cubin
_nvjitlinklib.complete(self.handle)
RuntimeError: NVJITLINK_ERROR_NVVM_COMPILE error when calling nvJitLinkComplete
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/numba-cuda/numba_cuda/numba/cuda/cudadrv/driver.py", line 3195, in complete
return self._linker.get_linked_cubin()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/pynvjitlink/api.py", line 89, in get_linked_cubin
raise NvJitLinkError(f"{e}\n{self.error_log}")
pynvjitlink.api.NvJitLinkError: NVJITLINK_ERROR_NVVM_COMPILE error when calling nvJitLinkComplete
add.ltoir: link error: error: linking module flags 'Debug Info Version': IDs have conflicting behaviors
ERROR 9 in nvvmCompileProgram callback
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/workspace/numba-cuda-tests/lto_debug_fault/test.py", line 19, in <module>
kernel[1, 5](a, b, c)
File "/workspace/numba-cuda/numba_cuda/numba/cuda/dispatcher.py", line 674, in __call__
return self.dispatcher.call(args, self.griddim, self.blockdim,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/dispatcher.py", line 816, in call
kernel = _dispatcher.Dispatcher._cuda_call(self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/dispatcher.py", line 824, in _compile_for_args
return self.compile(tuple(argtypes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/dispatcher.py", line 1075, in compile
kernel.bind()
File "/workspace/numba-cuda/numba_cuda/numba/cuda/dispatcher.py", line 317, in bind
cufunc = self._codelibrary.get_cufunc()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/codegen.py", line 255, in get_cufunc
cubin = self.get_cubin(cc=device.compute_capability)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/codegen.py", line 235, in get_cubin
cubin = linker.complete()
^^^^^^^^^^^^^^^^^
File "/workspace/numba-cuda/numba_cuda/numba/cuda/cudadrv/driver.py", line 3197, in complete
raise LinkerError from e
numba.cuda.cudadrv.driver.LinkerError
Expected behavior
No error should surface.
Additional context
I ran into this error when trying out assert statements inside kernel, to learned that it is only activated when debug is set to true.
The text was updated successfully, but these errors were encountered:
Describe the bug
When kernel invoked with
jit(lto=True, debug=True
, there's a linker error.Steps/Code to reproduce bug
Linker Error
Expected behavior
No error should surface.
Additional context
I ran into this error when trying out
assert
statements inside kernel, to learned that it is only activated whendebug
is set to true.The text was updated successfully, but these errors were encountered: