You are not logged in.
https://archlinux.org/packages/extra/x8 … thon-cupy/
There are 2 errors in the output:
1st - cupy_backends.cuda.libs.nvrtc.NVRTCError: NVRTC_ERROR_INVALID_OPTION (5)
2nd - nvrtc: error: invalid value for --gpu-architecture (-arch)
I installed this package. What do i do wrong?
uname -r
$ uname -r
6.17.5-arch1-1python -c 'import cupy; cupy.show_config()'
$ python -c 'import cupy; cupy.show_config()'
OS : Linux-6.17.5-arch1-1-x86_64-with-glibc2.42
Python Version : 3.13.7
CuPy Version : 13.6.0
CuPy Platform : NVIDIA CUDA
NumPy Version : 2.3.4
SciPy Version : None
Cython Build Version : 3.1.4
Cython Runtime Version : None
CUDA Root : /opt/cuda
nvcc PATH : /opt/cuda/bin/nvcc
CUDA Build Version : 13000
CUDA Driver Version : 13000
CUDA Runtime Version : 13000 (linked to CuPy) / 13000 (locally installed)
CUDA Extra Include Dirs : []
cuBLAS Version : (available)
cuFFT Version : 12000
cuRAND Version : 10400
cuSOLVER Version : (12, 0, 4)
cuSPARSE Version : (available)
NVRTC Version : (13, 0)
Thrust Version : 200800
CUB Build Version : 200800
Jitify Build Version : 1a0ca0e
cuDNN Build Version : None
cuDNN Version : None
NCCL Build Version : None
NCCL Runtime Version : None
cuTENSOR Version : None
cuSPARSELt Build Version : None
Device 0 Name : NVIDIA GeForce GTX 1080
Device 0 Compute Capability : 61
Device 0 PCI Bus ID : 0000:01:00.0]nvidia-smi
$ nvidia-smi
Fri Oct 31 18:23:46 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.95.05 Driver Version: 580.95.05 CUDA Version: 13.0 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1080 Off | 00000000:01:00.0 On | N/A |
| 35% 31C P8 12W / 95W | 408MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2245 G /usr/bin/gnome-shell 80MiB |
| 0 N/A N/A 2584 G /usr/bin/Xwayland 2MiB |
| 0 N/A N/A 5108 G /opt/v2rayN/v2rayN 25MiB |
| 0 N/A N/A 5344 C+G /usr/bin/easyeffects 32MiB |
| 0 N/A N/A 5429 G ...rack-uuid=3190708988185955192 118MiB |
| 0 N/A N/A 7010 C+G /usr/bin/nautilus 28MiB |
| 0 N/A N/A 11244 C+G /usr/bin/gnome-text-editor 26MiB |
| 0 N/A N/A 11412 G /usr/bin/Telegram 1MiB |
+-----------------------------------------------------------------------------------------+Code to reproduce
#!/usr/bin/env python3
import cupy as cp
a = cp.arange(10)
b = a * 2 + 1
print(b)
print("as numpy:", cp.asnumpy(b)) Error
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/cupy/cuda/compiler.py", line 731, in compile
nvrtc.compileProgram(self.ptr, options)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "cupy_backends/cuda/libs/nvrtc.pyx", line 125, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends/cuda/libs/nvrtc.pyx", line 138, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends/cuda/libs/nvrtc.pyx", line 53, in cupy_backends.cuda.libs.nvrtc.check_status
cupy_backends.cuda.libs.nvrtc.NVRTCError: NVRTC_ERROR_INVALID_OPTION (5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/Oleg/Data22Video_old/goodcode", line 3, in <module>
a = cp.arange(10) # массив на GPU
File "/usr/lib/python3.13/site-packages/cupy/_creation/ranges.py", line 60, in arange
_arange_ufunc(typ(start), typ(step), ret, dtype=dtype)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "cupy/_core/_kernel.pyx", line 1374, in cupy._core._kernel.ufunc.__call__
File "cupy/_core/_kernel.pyx", line 1401, in cupy._core._kernel.ufunc._get_ufunc_kernel
File "cupy/_core/_kernel.pyx", line 1082, in cupy._core._kernel._get_ufunc_kernel
File "cupy/_core/_kernel.pyx", line 94, in cupy._core._kernel._get_simple_elementwise_kernel
File "cupy/_core/_kernel.pyx", line 82, in cupy._core._kernel._get_simple_elementwise_kernel_from_code
File "cupy/_core/core.pyx", line 2377, in cupy._core.core.compile_with_cache
File "/usr/lib/python3.13/site-packages/cupy/cuda/compiler.py", line 536, in _compile_module_with_cache
return _compile_with_cache_cuda(
source, options, arch, cache_dir, extra_source, backend,
enable_cooperative_groups, name_expressions, log_stream,
cache_in_memory, jitify)
File "/usr/lib/python3.13/site-packages/cupy/cuda/compiler.py", line 580, in _compile_with_cache_cuda
base = _preprocess('', options, arch, backend)
File "/usr/lib/python3.13/site-packages/cupy/cuda/compiler.py", line 473, in _preprocess
result, _ = prog.compile(options)
~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/cupy/cuda/compiler.py", line 750, in compile
raise CompileException(log, self.src, self.name, options,
'nvrtc' if not runtime.is_hip else 'hiprtc')
cupy.cuda.compiler.CompileException: nvrtc: error: invalid value for --gpu-architecture (-arch)Last edited by xy1vro4 (2025-10-31 15:46:00)
Offline