cupyを実装したいと思っています
conda install cupy
で,インストールまではできたのですが,
インタプリタで以下のように実行すると
python
1>>> import cupy as cp 2>>> A = cp.arange(9).reshape(3, 3).astype('f') 3C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\creation\ranges.py:57: UserWarning: Please set the CUDA path to environment variable `CUDA_PATH` 4 _arange_ufunc(typ(start), typ(step), ret, dtype=dtype) 5Traceback (most recent call last): 6 File "C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\cuda\compiler.py", line 241, in compile 7 nvrtc.compileProgram(self.ptr, options) 8 File "cupy\cuda\nvrtc.pyx", line 98, in cupy.cuda.nvrtc.compileProgram 9 File "cupy\cuda\nvrtc.pyx", line 108, in cupy.cuda.nvrtc.compileProgram 10 File "cupy\cuda\nvrtc.pyx", line 53, in cupy.cuda.nvrtc.check_status 11cupy.cuda.nvrtc.NVRTCError: NVRTC_ERROR_INVALID_OPTION (5) 12 13During handling of the above exception, another exception occurred: 14 15Traceback (most recent call last): 16 File "<stdin>", line 1, in <module> 17 File "C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\creation\ranges.py", line 57, in arange 18 _arange_ufunc(typ(start), typ(step), ret, dtype=dtype) 19 File "cupy\core\elementwise.pxi", line 839, in cupy.core.core.ufunc.__call__ 20 File "cupy\util.pyx", line 39, in cupy.util.memoize.decorator.ret 21 File "cupy\core\elementwise.pxi", line 638, in cupy.core.core._get_ufunc_kernel 22 File "cupy\core\elementwise.pxi", line 33, in cupy.core.core._get_simple_elementwise_kernel 23 File "cupy\core\carray.pxi", line 146, in cupy.core.core.compile_with_cache 24 File "C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\cuda\compiler.py", line 135, in compile_with_cache 25 base = _preprocess('', options, arch) 26 File "C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\cuda\compiler.py", line 98, in _preprocess 27 result = prog.compile(options) 28 File "C:\Users\ユーザ名\Anaconda3\envs\py3.5\lib\site-packages\cupy\cuda\compiler.py", line 245, in compile 29 raise CompileException(log, self.src, self.name, options) 30cupy.cuda.compiler.CompileException: nvrtc: error: invalid value for --gpu-architecture (-arch)
おそらく,pathが通ってないよと言われていると思うのですが
どうも,pathの通し方がわかりません
教えていただけるとありがたいです
もし,path関係でない場合でも,解決策を教えていただけるとありがたいです
あなたの回答
tips
プレビュー