4
C:\Users\jkim4\Anaconda3\lib\site-packages\cupy\_environment.py:213: UserWarning: CUDA path could not be detected. Set CUDA_PATH environment variable if CuPy fails to load.
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\jkim4\Anaconda3\lib\site-packages\cupy\__init__.py", line 16, in <module>
    from cupy import _core  # NOQA
  File "C:\Users\jkim4\Anaconda3\lib\site-packages\cupy\_core\__init__.py", line 1, in <module>
    from cupy._core import core  # NOQA
  File "cupy\_core\core.pyx", line 1, in init cupy._core.core
  File "C:\Users\jkim4\Anaconda3\lib\site-packages\cupy\cuda\__init__.py", line 8, in <module>
    from cupy.cuda import compiler  # NOQA
  File "C:\Users\jkim4\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 12, in <module>
    from cupy.cuda import function
  File "cupy\cuda\function.pyx", line 1, in init cupy.cuda.function
  File "cupy\cuda\texture.pyx", line 1, in init cupy.cuda.texture
ImportError: DLL load failed while importing driver: 지정된 모듈을 찾을 수 없습니다.

The above exception was the direct cause of the following exception:

Hello. I'm trying to run some code from the paper, and i'm getting trouble and can't even implement the author's code.

I installed cuda from nvidia, cupy from conda-forge. But somehow it says that CUDA path could not be found. Is there any way to solve this problem? Thank you.

talonmies
  • 70,661
  • 34
  • 192
  • 269
ju won kim
  • 41
  • 1
  • 1
  • 2
  • 5
    As suggested in the error message, please set CUDA_PATH environment variable :) e.g., `set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4` – kmaehashi Oct 19 '21 at 15:03
  • 1
    Thank you so much!! CUDA path error has gone. I'm trying to solve the rest of the errors. But i can't figure out how to do it exactly. Do you have any advice? Maybe version of the cupy can be a problem i guess – ju won kim Oct 19 '21 at 15:55
  • 1
    What is "the rest of the errors" exactly? – kmaehashi Oct 20 '21 at 05:19
  • 2
    Almost except for the line saying cuda path was not detected still remained. But after i reinstalled cupy, all of the errors disappeared. I don't know what happened exactly but anyway at least i can implement code. Reinstalling cupy was done by code as follows. $ pip uninstall cupy $ pip install cupy --no-cache-dir – ju won kim Oct 20 '21 at 11:14

0 Answers0