win11安装时cuda测试报错

您好,测试jittor.test.test_cudnn_op时遇到以下问题:

环境:windows11 , conda=22.11.1 , python=3.9.13

# 安装路径:D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8

C:\Users\L>nvidia-smi
Tue Dec 20 22:57:09 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 522.06       Driver Version: 522.06       CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ... WDDM  | 00000000:01:00.0 Off |                  N/A |
| N/A   48C    P8    13W /  N/A |      0MiB /  6144MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

C:\Users\L>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

运行输出:

C:\Users\L>python -m jittor.test.test_cudnn_op
[i 1220 23:04:14.189000 96 compiler.py:955] Jittor(1.3.6.4) src: d:\anaconda3\lib\site-packages\jittor
[i 1220 23:04:14.210000 96 compiler.py:956] cl at C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe(19.29.30133)
[i 1220 23:04:14.210000 96 compiler.py:957] cache_path: C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default
[i 1220 23:04:14.214000 96 install_cuda.py:93] cuda_driver_version: [11, 8, 0]
[i 1220 23:04:14.231000 96 __init__.py:411] Found C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 1220 23:04:14.289000 96 __init__.py:411] Found gdb(8.1) at D:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gdb.EXE.
[i 1220 23:04:14.311000 96 __init__.py:411] Found addr2line(2.30) at D:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\addr2line.EXE.
[i 1220 23:04:14.333000 96 compiler.py:1010] cuda key:cu11.2.67
[i 1220 23:04:14.334000 96 __init__.py:227] Total mem: 15.81GB, using 5 procs for compiling.
[i 1220 23:04:16.222000 96 jit_compiler.cc:28] Load cc_path: C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe
[i 1220 23:04:16.223000 96 init.cc:62] Found cuda archs: [75,]
[i 1220 23:04:16.331000 96 compile_extern.py:519] mpicc not found, distribution disabled.
[w 1220 23:04:16.376000 96 compile_extern.py:200] CUDA related path found in LD_LIBRARY_PATH or PATH(['', 'C', '\\Users\\L\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib64', '', 'C', '\\Users\\L\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\bin', '', 'C', '\\Users\\L\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\lib', '', 'C', '\\Users\\L\\.cache\\jittor\\jt1.3.6\\cl\\py3.9.13\\Windows-10-10.xf8\\IntelRCoreTMi7x8e\\default', '', 'C', '\\Users\\L\\.cache\\jittor\\jt1.3.6\\cl\\py3.9.13\\Windows-10-10.xf8\\IntelRCoreTMi7x8e\\default\\cu11.2.67', '', 'C', '\\Users\\L\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\bin', '', 'C', '\\Users\\L\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib\\x64', '', 'C', '\\Users\\L\\.cache\\jittor\\msvc\\win10_kits\\lib\\ucrt\\x64', '', 'C', '\\Users\\L\\.cache\\jittor\\msvc\\win10_kits\\lib\\um\\x64', '', 'C', '\\Users\\L\\.cache\\jittor\\msvc\\VC\\lib', '', 'd', '\\anaconda3\\libs', 'C', '\\Users\\L\\.cache\\jittor\\msvc\\VC\\_\\_\\_\\_\\_\\bin', 'D', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin', 'D', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp', 'C', '\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler', 'D', '\\Anaconda3\\Scripts', 'D', '\\Anaconda3\\Library\\bin', 'D', '\\Anaconda3', 'D', '\\Program Files\\Eclipse Foundation\\jdk-8.0.302.8-hotspot\\bin', 'D', '\\Program Files (x86)\\Mozilla Firefox', 'D', '\\Program Files\\ffmpeg-4.4-essentials_build\\bin', 'C', '\\Windows\\system32', 'C', '\\Windows', 'C', '\\Windows\\System32\\Wbem', 'C', '\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C', '\\Windows\\System32\\OpenSSH\\', 'C', '\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common', 'C', '\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR', 'C', '\\Program Files\\Microsoft VS Code\\bin', 'D', '\\Program Files\\MATLAB\\R2019b\\bin', 'C', '\\WINDOWS\\system32', 'C', '\\WINDOWS', 'C', '\\WINDOWS\\System32\\Wbem', 'C', '\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C', '\\WINDOWS\\System32\\OpenSSH\\', 'D', '\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin', 'D', '\\Program Files\\Git\\cmd', 'D', '\\Program Files\\Git\\bin', 'D', '\\Program Files\\nodejs\\', 'C', '\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\', 'C', '\\Users\\L\\AppData\\Local\\Microsoft\\WindowsApps', 'D', '\\Program Files\\MiKTeX\\miktex\\bin\\x64\\', 'C', '\\Users\\L\\AppData\\Roaming\\npm', 'D', '\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.2.2\\bin', '', 'D', '\\Program Files\\JetBrains\\PyCharm Community Edition 2022.2\\bin', '', '']), This path may cause jittor found the wrong libs, please unset LD_LIBRARY_PATH and remove cuda lib path in Path.
Or you can let jittor install cuda for you: `python3.x -m jittor_utils.install_cuda`
[i 1220 23:04:17.494000 96 cuda_flags.cc:39] CUDA enabled.
[i 1220 23:04:17.499000 96 v10 op.cc:271] Jit op key not found: curand_random?T:float32?R:uniform?JIT:1?JIT_cuda:1?index_t:int32
[e 1220 23:04:20.626000 96 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
   Creating library C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.lib and object C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.exp
tmpxft_0000584c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::print_prefix(class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?print_prefix@jittor@@YAXPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
tmpxft_0000584c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::flush_log(void)" (__imp_?flush_log@jittor@@YAXXZ) referenced in function "public: void __cdecl jittor::Log::flush(void)" (?flush@Log@jittor@@QEAAXXZ)
tmpxft_0000584c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool jittor::g_supports_color" (__imp_?g_supports_color@jittor@@3_NA) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll : fatal error LNK1120: 3 unresolved externals

[i 1220 23:04:20.627000 96 v10 op.cc:271] Jit op key not found: curand_random?T:float32?R:uniform?JIT:1?JIT_cuda:1?index_t:int32
[e 1220 23:04:23.596000 96 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
   Creating library C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.lib and object C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.exp
tmpxft_00003b0c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::print_prefix(class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?print_prefix@jittor@@YAXPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
tmpxft_00003b0c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::flush_log(void)" (__imp_?flush_log@jittor@@YAXXZ) referenced in function "public: void __cdecl jittor::Log::flush(void)" (?flush@Log@jittor@@QEAAXXZ)
tmpxft_00003b0c_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool jittor::g_supports_color" (__imp_?g_supports_color@jittor@@3_NA) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll : fatal error LNK1120: 3 unresolved externals

E..[i 1220 23:04:23.598000 96 v10 op.cc:271] Jit op key not found: curand_random?T:float32?R:uniform?JIT:1?JIT_cuda:1?index_t:int32
[e 1220 23:04:26.549000 96 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
   Creating library C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.lib and object C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.exp
tmpxft_00003ad8_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::print_prefix(class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?print_prefix@jittor@@YAXPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
tmpxft_00003ad8_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::flush_log(void)" (__imp_?flush_log@jittor@@YAXXZ) referenced in function "public: void __cdecl jittor::Log::flush(void)" (?flush@Log@jittor@@QEAAXXZ)
tmpxft_00003ad8_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool jittor::g_supports_color" (__imp_?g_supports_color@jittor@@3_NA) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll : fatal error LNK1120: 3 unresolved externals

E[i 1220 23:04:26.551000 96 v10 op.cc:271] Jit op key not found: curand_random?T:float32?R:uniform?JIT:1?JIT_cuda:1?index_t:int32
[e 1220 23:04:29.499000 96 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
   Creating library C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.lib and object C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.exp
tmpxft_00005290_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::print_prefix(class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?print_prefix@jittor@@YAXPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
tmpxft_00005290_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl jittor::flush_log(void)" (__imp_?flush_log@jittor@@YAXXZ) referenced in function "public: void __cdecl jittor::Log::flush(void)" (?flush@Log@jittor@@QEAAXXZ)
tmpxft_00005290_00000000-19_curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool jittor::g_supports_color" (__imp_?g_supports_color@jittor@@3_NA) referenced in function "public: __cdecl jittor::Log::Log(char const * const,char,int)" (??0Log@jittor@@QEAA@QEBDDH@Z)
C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll : fatal error LNK1120: 3 unresolved externals

E
======================================================================
ERROR: test (__main__.TestCudnnConvOp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 64, in check
    y.sync()
RuntimeError: [f 1220 23:04:20.627000 96 executor.cc:666]
Execute fused operator(0/3) failed.
[JIT Source]: C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
[OP TYPE]: curand_random
[Input]:
[Output]: float32[10,100,100,3,],
[Async Backtrace]: not found, please set env JT_SYNC=1, trace_py_var=3
[Reason]: [f 1220 23:04:20.626000 96 log.cc:608] Check failed ret(2) == 0(0) Run cmd failed: "C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc"          -shared  -L"d:\anaconda3\libs" -lpython39  -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8   -I"C:\Users\L\.cache\jittor\msvc\VC\include" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX  -L"C:\Users\L\.cache\jittor\msvc\VC\lib" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\ucrt\x64"  -I"d:\anaconda3\lib\site-packages\jittor\src" -I"d:\anaconda3\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc"  -lcudart -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -x cu --cudart=shared -ccbin="C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math  -w  -I"d:\anaconda3\lib\site-packages\jittor\extern/cuda/inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\ops"  -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\curand\inc" -lcurand -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\cuda" -llibcuda_extern   -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\custom_ops" -l"gen_ops_curand_random.cp39-win_amd64"  -o "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll" -Xlinker -EXPORT:"?jit_run@CurandRandomOp@jittor@@QEAAXXZ"
**********
Async error was detected. To locate the async backtrace and get better error report, please rerun your code with two enviroment variables set:
cmd:
>>> set JT_SYNC=1
>>> set trace_py_var=3
powershell:
>>> $env:JT_SYNC=1
>>> $env:trace_py_var=3


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 71, in test
    check([10,100,100,3], [5,3,3,3], stride=2, padding=0, dilation=1)
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 64, in check
    y.sync()
  File "D:\Anaconda3\lib\site-packages\jittor\__init__.py", line 205, in __exit__
    self.fs.__exit__(*exc)
  File "D:\Anaconda3\lib\site-packages\jittor\__init__.py", line 138, in __exit__
    setattr(flags, k, v)
RuntimeError: [f 1220 23:04:23.597000 96 executor.cc:666]
Execute fused operator(0/3) failed.
[JIT Source]: C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
[OP TYPE]: curand_random
[Input]:
[Output]: float32[10,100,100,3,],
[Async Backtrace]: not found, please set env JT_SYNC=1, trace_py_var=3
[Reason]: [f 1220 23:04:23.597000 96 log.cc:608] Check failed ret(2) == 0(0) Run cmd failed: "C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc"          -shared  -L"d:\anaconda3\libs" -lpython39  -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8   -I"C:\Users\L\.cache\jittor\msvc\VC\include" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX  -L"C:\Users\L\.cache\jittor\msvc\VC\lib" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\ucrt\x64"  -I"d:\anaconda3\lib\site-packages\jittor\src" -I"d:\anaconda3\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc"  -lcudart -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -x cu --cudart=shared -ccbin="C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math  -w  -I"d:\anaconda3\lib\site-packages\jittor\extern/cuda/inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\ops"  -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\curand\inc" -lcurand -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\cuda" -llibcuda_extern   -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\custom_ops" -l"gen_ops_curand_random.cp39-win_amd64"  -o "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll" -Xlinker -EXPORT:"?jit_run@CurandRandomOp@jittor@@QEAAXXZ"
**********
Async error was detected. To locate the async backtrace and get better error report, please rerun your code with two enviroment variables set:
cmd:
>>> set JT_SYNC=1
>>> set trace_py_var=3
powershell:
>>> $env:JT_SYNC=1
>>> $env:trace_py_var=3


======================================================================
ERROR: test_conv3d (__main__.TestCudnnConvOp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 150, in test_conv3d
    check((2,4,10,10,10), (5,4,3,3,3), (1,1,1), (1,1,1))
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 142, in check
    jt.sync_all()
RuntimeError: [f 1220 23:04:26.550000 96 executor.cc:666]
Execute fused operator(0/7) failed.
[JIT Source]: C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
[OP TYPE]: curand_random
[Input]:
[Output]: float32[2,4,10,10,10,],
[Async Backtrace]: not found, please set env JT_SYNC=1, trace_py_var=3
[Reason]: [f 1220 23:04:26.550000 96 log.cc:608] Check failed ret(2) == 0(0) Run cmd failed: "C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc"          -shared  -L"d:\anaconda3\libs" -lpython39  -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8   -I"C:\Users\L\.cache\jittor\msvc\VC\include" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX  -L"C:\Users\L\.cache\jittor\msvc\VC\lib" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\ucrt\x64"  -I"d:\anaconda3\lib\site-packages\jittor\src" -I"d:\anaconda3\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc"  -lcudart -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -x cu --cudart=shared -ccbin="C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math  -w  -I"d:\anaconda3\lib\site-packages\jittor\extern/cuda/inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\ops"  -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\curand\inc" -lcurand -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\cuda" -llibcuda_extern   -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\custom_ops" -l"gen_ops_curand_random.cp39-win_amd64"  -o "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll" -Xlinker -EXPORT:"?jit_run@CurandRandomOp@jittor@@QEAAXXZ"
**********
Async error was detected. To locate the async backtrace and get better error report, please rerun your code with two enviroment variables set:
cmd:
>>> set JT_SYNC=1
>>> set trace_py_var=3
powershell:
>>> $env:JT_SYNC=1
>>> $env:trace_py_var=3


======================================================================
ERROR: test_conv_transpose3d (__main__.TestCudnnConvOp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 184, in test_conv_transpose3d
    check((2,5,10,10,10), (5,4,3,3,3), (1,1,1), (1,1,1))
  File "D:\Anaconda3\lib\site-packages\jittor\test\test_cudnn_op.py", line 166, in check
    jt.sync_all()
RuntimeError: [f 1220 23:04:29.500000 96 executor.cc:666]
Execute fused operator(0/2) failed.
[JIT Source]: C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc
[OP TYPE]: curand_random
[Input]:
[Output]: float32[2,5,10,10,10,],
[Async Backtrace]: not found, please set env JT_SYNC=1, trace_py_var=3
[Reason]: [f 1220 23:04:29.500000 96 log.cc:608] Check failed ret(2) == 0(0) Run cmd failed: "C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.cc"          -shared  -L"d:\anaconda3\libs" -lpython39  -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8   -I"C:\Users\L\.cache\jittor\msvc\VC\include" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\L\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX  -L"C:\Users\L\.cache\jittor\msvc\VC\lib" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\L\.cache\jittor\msvc\win10_kits\lib\ucrt\x64"  -I"d:\anaconda3\lib\site-packages\jittor\src" -I"d:\anaconda3\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc"  -lcudart -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -x cu --cudart=shared -ccbin="C:\Users\L\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math  -w  -I"d:\anaconda3\lib\site-packages\jittor\extern/cuda/inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\inc"  -I"D:\Anaconda3\Lib\site-packages\jittor\extern\cuda\curand\ops"  -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\inc" -I"d:\anaconda3\lib\site-packages\jittor\extern\cuda\curand\inc" -lcurand -L"C:\Users\L\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\cuda" -llibcuda_extern   -L"C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\custom_ops" -l"gen_ops_curand_random.cp39-win_amd64"  -o "C:\Users\L\.cache\jittor\jt1.3.6\cl\py3.9.13\Windows-10-10.xf8\IntelRCoreTMi7x8e\default\cu11.2.67\jit\curand_random__T_float32__R_uniform__JIT_1__JIT_cuda_1__index_t_int32_hash_5e4862fb808a2f93_op.dll" -Xlinker -EXPORT:"?jit_run@CurandRandomOp@jittor@@QEAAXXZ"
**********
Async error was detected. To locate the async backtrace and get better error report, please rerun your code with two enviroment variables set:
cmd:
>>> set JT_SYNC=1
>>> set trace_py_var=3
powershell:
>>> $env:JT_SYNC=1
>>> $env:trace_py_var=3


----------------------------------------------------------------------
Ran 5 tests in 12.006s

FAILED (errors=3)

您好,已经确认并解决了该问题。请您更新 jittor 到 1.3.6.5 版本试试。

python -m pip install -U jittor

谢谢您,更新后已能正常使用