Upon installing cuda and cupy + running a basic python script
import cupy as cp
x = cp.array([1, 2, 3])
print(x**2)
I get the following error :
$ python CUDA_RESET.py
Traceback (most recent call last):
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 692, 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_COMPILATION (6)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\CUDA_RESET.py", line 3, in <module>
print(x**2)
File "cupy\_core\core.pyx", line 1348, in cupy._core.core._ndarray_base.__pow__
File "cupy\_core\core.pyx", line 1699, in cupy._core.core._ndarray_base.__array_ufunc__
File "cupy\_core\_kernel.pyx", line 1375, in cupy._core._kernel.ufunc.__call__
File "cupy\_core\_kernel.pyx", line 1402, 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 2283, in cupy._core.core.compile_with_cache
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 498, in _compile_module_with_cache
return _compile_with_cache_cuda(
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 577, in _compile_with_cache_cuda
ptx, mapping = compile_using_nvrtc(
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 333, in compile_using_nvrtc
return _compile(source, options, cu_path,
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 317, in _compile
compiled_obj, mapping = prog.compile(options, log_stream)
File "C:\Users\tomas\OneDrive\Počítač\Dazehad_crypto\Coinbase_Trader\venv310\lib\site-packages\cupy\cuda\compiler.py", line 711, in compile
raise CompileException(log, self.src, self.name, options,
cupy.cuda.compiler.CompileException: C:\Users\tomas\AppData\Local\Temp\tmp49d6rh0h\131108f16a8d0b83baadae3d81702da309c2b9c8.cubin.cu(1): catastrophic error: cannot open source file "cupy/complex.cuh"
#include <cupy/complex.cuh>
^
1 catastrophic error detected in the compilation of "C:\Users\tomas\AppData\Local\Temp\tmp49d6rh0h\131108f16a8d0b83baadae3d81702da309c2b9c8.cubin.cu".
Compilation terminated.
(venv310)
I’ve tried to reinstall cupy-cuda12x multiple times and my env variables seem to be okay (80%sure on that one)
I’d appreciate any help and thanks in advance for your time