Error when using 13.6
Description:
When trying to use cupy
, the below error appears.
It says “This is likely a bug in CuPy” but I feel like it looks more like a compile bug.
Additional info:
- package version(s): 13.6.0-1
- config and/or log files: N/A
- link to upstream bug report, if any: N/A
Steps to reproduce:
>>> import cupy as cu
>>> cu.zeros(100_000) * 2
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
File cupy_backends/cuda/_softlink.pyx:54, in cupy_backends.cuda._softlink._fail_unsupported()
AssertionError:
*** The requested function is not supported in the current version of
*** the toolkit installed in your environment.
***
*** This is likely a bug in CuPy. Please report this issue to:
*** https://github.com/cupy/cupy/issues
The above exception was the direct cause of the following exception:
SystemError Traceback (most recent call last)
Cell In[2], line 1
----> 1 cu.zeros(100_000) * 2
File cupy/_core/core.pyx:1391, in cupy._core.core._ndarray_base.__mul__()
File cupy/_core/core.pyx:1799, in cupy._core.core._ndarray_base.__array_ufunc__()
File cupy/_core/_kernel.pyx:1374, in cupy._core._kernel.ufunc.__call__()
File cupy/_core/_kernel.pyx:1401, in cupy._core._kernel.ufunc._get_ufunc_kernel()
File cupy/_core/_kernel.pyx:1082, in cupy._core._kernel._get_ufunc_kernel()
File cupy/_core/_kernel.pyx:94, in cupy._core._kernel._get_simple_elementwise_kernel()
File cupy/_core/_kernel.pyx:82, in cupy._core._kernel._get_simple_elementwise_kernel_from_code()
File cupy/_core/core.pyx:2377, in cupy._core.core.compile_with_cache()
File /usr/lib/python3.13/site-packages/cupy/cuda/compiler.py:532, in _compile_module_with_cache(source, options, arch, cache_dir, extra_source, backend, enable_cooperative_groups, name_expressions, log_stream, jitify)
530 if runtime.is_hip:
531 backend = 'hiprtc' if backend == 'nvrtc' else 'hipcc'
--> 532 return _compile_with_cache_hip(
533 source, options, arch, cache_dir, extra_source, backend,
534 name_expressions, log_stream, cache_in_memory)
535 else:
536 return _compile_with_cache_cuda(
537 source, options, arch, cache_dir, extra_source, backend,
538 enable_cooperative_groups, name_expressions, log_stream,
539 cache_in_memory, jitify)
File /usr/lib/python3.13/site-packages/cupy/cuda/compiler.py:913, in _compile_with_cache_hip(source, options, arch, cache_dir, extra_source, backend, name_expressions, log_stream, cache_in_memory, use_converter)
909 if use_converter:
910 source = _convert_to_hip_source(source, extra_source,
911 is_hiprtc=(backend == 'hiprtc'))
--> 913 env = (arch, options, _get_nvrtc_version(), backend)
914 base = _empty_file_preprocess_cache.get(env, None)
915 if base is None:
916 # This is for checking HIPRTC/HIPCC compiler internal version
File /usr/lib/python3.13/site-packages/cupy/cuda/compiler.py:153, in _get_nvrtc_version()
151 global _nvrtc_version
152 if _nvrtc_version is None:
--> 153 _nvrtc_version = nvrtc.getVersion()
155 return _nvrtc_version
File cupy_backends/cuda/libs/nvrtc.pyx:56, in cupy_backends.cuda.libs.nvrtc.getVersion()
File cupy_backends/cuda/libs/nvrtc.pyx:61, in cupy_backends.cuda.libs.nvrtc.getVersion()
File cupy_backends/cuda/libs/nvrtc.pyx:53, in cupy_backends.cuda.libs.nvrtc.check_status()
SystemError: <class 'cupy_backends.cuda.libs.nvrtc.NVRTCError'> returned a result with an exception set
Edited by Philipp A.