计图运行报错

windows操作系统 在程序中import jittor后会出现如下报错

(pytorch) D:\dx\ANN\Final\PPLM-Jittor>python -u "c:\Users\LEGION\Desktop\xj\test.py"         
[i 1208 23:14:28.991000 84 compiler.py:955] Jittor(1.3.6.2) src: e:\anaconda3\envs\pytorch\lib\site-packages\jittor
[i 1208 23:14:29.025000 84 compiler.py:956] cl at C:\Users\LEGION\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe(19.29.30133)
[i 1208 23:14:29.026000 84 compiler.py:957] cache_path: C:\Users\LEGION\.cache\jittor\jt1.3.6\cl\py3.10.6\Windows-10-10.xd0\AMDRyzen75800Hxb1\default
[i 1208 23:14:29.028000 84 install_cuda.py:93] cuda_driver_version: [11, 6, 0]
[i 1208 23:14:29.057000 84 __init__.py:411] Found C:\Users\LEGION\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\LEGION\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 1208 23:14:29.162000 84 __init__.py:411] Found gdb(7.8.1) at E:\Dev-Cpp\MinGW64\bin\gdb.EXE.
[i 1208 23:14:29.234000 84 __init__.py:411] Found addr2line(2.24.51) at E:\Dev-Cpp\MinGW64\bin\addr2line.EXE.
[i 1208 23:14:29.280000 84 compiler.py:1010] cuda key:cu11.2.67
[i 1208 23:14:29.282000 84 __init__.py:227] Total mem: 15.87GB, using 5 procs for compiling.
[i 1208 23:14:30.190000 84 jit_compiler.cc:28] Load cc_path: C:\Users\LEGION\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe
[i 1208 23:14:30.191000 84 init.cc:62] Found cuda archs: [86,]
[i 1208 23:14:30.271000 84 compile_extern.py:519] mpicc not found, distribution disabled.
Traceback (most recent call last):
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor\compile_extern.py", line 232, in setup_cuda_extern
    setup_cuda_lib(lib_name, extra_flags=link_cuda_extern)
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor\compile_extern.py", line 291, in setup_cuda_lib   
    ctypes.CDLL(ex_cudnn_path, dlopen_flags)
  File "E:\Anaconda3\envs\pytorch\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] 找不到指定的程序。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\LEGION\Desktop\xj\test.py", line 2, in <module>
    import jittor as jt
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor\__init__.py", line 25, in <module>
    from . import compile_extern
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor\compile_extern.py", line 593, in <module>
    setup_cuda_extern()
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor\compile_extern.py", line 244, in setup_cuda_extern
    LOG.f(msg)
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor_utils\__init__.py", line 104, in f
    def f(self, *msg): self._log('f', 0, *msg)
  File "E:\Anaconda3\envs\pytorch\lib\site-packages\jittor_utils\__init__.py", line 89, in _log
    cc.log(fileline, level, verbose, msg)
RuntimeError: [f 1208 23:14:31.479000 84 compile_extern.py:244] CUDA found but cudnn is not loaded:
Develop version of CUDNN not found,
please refer to CUDA offical tar file installation:
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installlinux-tar
or you can let jittor install cuda and cudnn for you:
>>> python3.10 -m jittor_utils.install_cuda

运行底部指令会提示已经安装

[i 1208 23:21:09.100990 20 install_cuda.py:93] cuda_driver_version: [11, 6, 0]
[i 1208 23:21:09.101990 20 install_cuda.py:162] nvcc is installed at C:\Users\LEGION\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe

或许是没有找到路径?但是没有找到在哪里可以设置

我没有能够复现出您的问题。您能不能确认一下
C:\Users\LEGION\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\includeC:\Users\LEGION\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib 下是否存在 cudnn 相关的文件。

比如我的目录下有:

// C:\Users\<USERNAME>\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include
12/16/2022  02:42 PM             3,046 cudnn.h
12/16/2022  02:42 PM            29,683 cudnn_adv_infer.h
12/16/2022  02:42 PM            28,240 cudnn_adv_train.h
12/16/2022  02:42 PM            16,087 cudnn_backend.h
12/16/2022  02:42 PM            29,582 cudnn_cnn_infer.h
12/16/2022  02:42 PM            10,396 cudnn_cnn_train.h
12/16/2022  02:42 PM            50,137 cudnn_ops_infer.h
12/16/2022  02:42 PM            26,234 cudnn_ops_train.h
12/16/2022  02:42 PM             2,848 cudnn_version.h

// C:\Users\<USERNAME>\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64
12/16/2022  02:42 PM            72,338 cudnn.lib
12/16/2022  02:42 PM            72,338 cudnn64_8.lib
12/16/2022  02:42 PM            77,658 cudnn_adv_infer.lib
12/16/2022  02:42 PM            77,658 cudnn_adv_infer64_8.lib
12/16/2022  02:42 PM            29,174 cudnn_adv_train.lib
12/16/2022  02:42 PM            29,174 cudnn_adv_train64_8.lib
12/16/2022  02:42 PM         2,438,396 cudnn_cnn_infer.lib
12/16/2022  02:42 PM         2,438,396 cudnn_cnn_infer64_8.lib
12/16/2022  02:42 PM         1,032,738 cudnn_cnn_train.lib
12/16/2022  02:42 PM         1,032,738 cudnn_cnn_train64_8.lib
12/16/2022  02:42 PM           130,796 cudnn_ops_infer.lib
12/16/2022  02:42 PM           130,796 cudnn_ops_infer64_8.lib
12/16/2022  02:42 PM            27,894 cudnn_ops_train.lib
12/16/2022  02:42 PM            27,894 cudnn_ops_train64_8.lib

您好 请问您的问题解决了么 我也遇到了相同的问题

您好 我的这两个路径中都包含了cudnn的文件 但还是会报相同的错误 显示找不到cudnn 这是为什么呢