win10中运行可微渲染渲染demo1-render.py报错

1.错误信息:
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.numpy)).
2. Jittor 运行的完整 log

"D:\Program Files\Anaconda3\envs\jittor\python.exe" D:/work/code/python/jrender/demo1-render.py
[i 0928 15:58:48.037000 12 compiler.py:955] Jittor(1.3.5.16) src: d:\program files\anaconda3\envs\jittor\lib\site-packages\jittor
[i 0928 15:58:48.445000 12 compiler.py:956] cl at C:\Users\lee\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe(19.29.30133)
[i 0928 15:58:48.445000 12 compiler.py:957] cache_path: C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default
[i 0928 15:58:48.447000 12 install_cuda.py:88] cuda_driver_version: [11, 6, 0]
[i 0928 15:58:48.843000 12 __init__.py:411] Found C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 0928 15:58:49.277000 12 compiler.py:1010] cuda key:cu11.2.67
[i 0928 15:58:49.278000 12 __init__.py:227] Total mem: 31.72GB, using 10 procs for compiling.
[i 0928 15:58:51.245000 12 jit_compiler.cc:28] Load cc_path: C:\Users\lee\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe
[i 0928 15:58:51.246000 12 init.cc:62] Found cuda archs: [86,]
[i 0928 15:58:51.656000 12 compile_extern.py:517] mpicc not found, distribution disabled.
[w 0928 15:58:51.687000 12 compile_extern.py:200] CUDA related path found in LD_LIBRARY_PATH or PATH(['', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib64', '', 'C', '\\Users\\lee\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\bin', '', 'C', '\\Users\\lee\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\lib', '', 'C', '\\Users\\lee\\.cache\\jittor\\jt1.3.5\\cl\\py3.8.13\\Windows-10-10.x2c\\IntelRCoreTMi7x8f\\default', '', 'C', '\\Users\\lee\\.cache\\jittor\\jt1.3.5\\cl\\py3.8.13\\Windows-10-10.x2c\\IntelRCoreTMi7x8f\\default\\cu11.2.67', '', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\bin', '', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\win10_kits\\lib\\ucrt\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\win10_kits\\lib\\um\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\VC\\lib', '', 'd', '\\program files\\anaconda3\\envs\\jittor\\libs', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\VC\\_\\_\\_\\_\\_\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\mingw-w64\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\usr\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Scripts', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\bin', 'D', '\\Program Files\\Anaconda3\\condabin', 'D', '\\Program Files\\JetBrains\\PyCharm 2019.1.4\\jre64\\bin', 'D', '\\Program Files\\JetBrains\\PyCharm 2019.1.4\\jre64\\bin\\server', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\bin', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\include', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\libnvvp', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\lib', 'C', '\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath', 'C', '\\Windows\\system32', 'C', '\\Windows', 'C', '\\Windows\\System32\\Wbem', 'C', '\\Windows\\System32\\WindowsPowerShell\\v1.0', 'C', '\\Windows\\System32\\OpenSSH', 'C', '\\Program Files\\Java\\jdk1.8.0_311\\bin', 'C', '\\Program Files\\Java\\jre1.8.0_311', 'D', '\\Program Files\\apache-maven-3.6.0\\bin', 'C', '\\ProgramData\\chocolatey\\bin', 'C', '\\Program Files\\dotnet', 'C', '\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common', 'D', '\\Program Files\\Git\\Git\\cmd', 'C', '\\Program Files\\NVIDIA Corporation\\Nsight Compute 2021.1.0', 'C', '\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR', 'C', '\\Users\\lee\\scoop\\shims', 'C', '\\Users\\lee\\AppData\\Local\\Microsoft\\WindowsApps', '.', 'D', '\\Program Files\\Microsoft VS Code\\Microsoft VS Code\\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`
[w 0928 15:58:51.687000 12 compile_extern.py:200] CUDA related path found in LD_LIBRARY_PATH or PATH(['', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib64', '', 'C', '\\Users\\lee\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\bin', '', 'C', '\\Users\\lee\\.cache\\jittor\\mkl\\dnnl_win_2.2.0_cpu_vcomp\\lib', '', 'C', '\\Users\\lee\\.cache\\jittor\\jt1.3.5\\cl\\py3.8.13\\Windows-10-10.x2c\\IntelRCoreTMi7x8f\\default', '', 'C', '\\Users\\lee\\.cache\\jittor\\jt1.3.5\\cl\\py3.8.13\\Windows-10-10.x2c\\IntelRCoreTMi7x8f\\default\\cu11.2.67', '', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\bin', '', 'C', '\\Users\\lee\\.cache\\jittor\\jtcuda\\cuda11.2_cudnn8_win\\lib\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\win10_kits\\lib\\ucrt\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\win10_kits\\lib\\um\\x64', '', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\VC\\lib', '', 'd', '\\program files\\anaconda3\\envs\\jittor\\libs', 'C', '\\Users\\lee\\.cache\\jittor\\msvc\\VC\\_\\_\\_\\_\\_\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\mingw-w64\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\usr\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Library\\bin', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\Scripts', 'D', '\\Program Files\\Anaconda3\\envs\\jittor\\bin', 'D', '\\Program Files\\Anaconda3\\condabin', 'D', '\\Program Files\\JetBrains\\PyCharm 2019.1.4\\jre64\\bin', 'D', '\\Program Files\\JetBrains\\PyCharm 2019.1.4\\jre64\\bin\\server', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\bin', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\include', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\libnvvp', 'C', '\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\lib', 'C', '\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath', 'C', '\\Windows\\system32', 'C', '\\Windows', 'C', '\\Windows\\System32\\Wbem', 'C', '\\Windows\\System32\\WindowsPowerShell\\v1.0', 'C', '\\Windows\\System32\\OpenSSH', 'C', '\\Program Files\\Java\\jdk1.8.0_311\\bin', 'C', '\\Program Files\\Java\\jre1.8.0_311', 'D', '\\Program Files\\apache-maven-3.6.0\\bin', 'C', '\\ProgramData\\chocolatey\\bin', 'C', '\\Program Files\\dotnet', 'C', '\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common', 'D', '\\Program Files\\Git\\Git\\cmd', 'C', '\\Program Files\\NVIDIA Corporation\\Nsight Compute 2021.1.0', 'C', '\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR', 'C', '\\Users\\lee\\scoop\\shims', 'C', '\\Users\\lee\\AppData\\Local\\Microsoft\\WindowsApps', '.', 'D', '\\Program Files\\Microsoft VS Code\\Microsoft VS Code\\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 0928 15:58:55.105000 12 cuda_flags.cc:32] CUDA enabled.
Drawing rotation:   0%|          | 0/90 [00:00<?, ?it/s][e 0928 15:59:01.824000 12 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc
C:/Users/lee/.cache/jittor/jt1.3.5/cl/py3.8.13/Windows-10-10.x2c/IntelRCoreTMi7x8f/default/cu11.2.67/jit/code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc(153): error: function "atomicAdd(double *, double)" has already been defined

1 error detected in the compilation of "C:/Users/lee/.cache/jittor/jt1.3.5/cl/py3.8.13/Windows-10-10.x2c/IntelRCoreTMi7x8f/default/cu11.2.67/jit/code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc".
code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc

Drawing rotation:   0%|          | 0/90 [00:06<?, ?it/s]
Traceback (most recent call last):
  File "D:/work/code/python/jrender/demo1-render.py", line 67, in <module>
    main()
  File "D:/work/code/python/jrender/demo1-render.py", line 43, in main
    image = rgb.numpy()[0].transpose((1, 2, 0))
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.numpy)).

Types of your inputs are:
 self	= Var,
 args	= (),

The function declarations are:
 ArrayArgs fetch_sync()

Failed reason:[f 0928 15:59:01.824000 12 parallel_compiler.cc:329] Error happend during compilation:
 [Error] source file location:C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default\cu11.2.67\jit\code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc
Compile operator(63/69)failed:Op(1112:0:4:4:i3:o4:s0,code->...)

Reason: [f 0928 15:59:01.824000 12 log.cc:608] Check failed ret(2) == 0(0) Run cmd failed: "C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default\cu11.2.67\jit\code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.cc"            -shared  -L"d:\program files\anaconda3\envs\jittor\libs" -lpython38  -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8   -I"C:\Users\lee\.cache\jittor\msvc\VC\include" -I"C:\Users\lee\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\lee\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\lee\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX  -L"C:\Users\lee\.cache\jittor\msvc\VC\lib" -L"C:\Users\lee\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\lee\.cache\jittor\msvc\win10_kits\lib\ucrt\x64"  -I"d:\program files\anaconda3\envs\jittor\lib\site-packages\jittor\src" -I"d:\program files\anaconda3\envs\jittor\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\program files\anaconda3\envs\jittor\lib\site-packages\jittor\extern\cuda\inc"  -lcudart -L"C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\lee\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin"  -I"C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default\cu11.2.67" -L"C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default\cu11.2.67" -L"C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default"  -l"jit_utils_core.cp38-win_amd64"  -l"jittor_core.cp38-win_amd64"  -x cu --cudart=shared -ccbin="C:\Users\lee\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math  -w  -I"d:\program files\anaconda3\envs\jittor\lib\site-packages\jittor\extern/cuda/inc"  -arch=compute_86  -code=sm_86  -o "C:\Users\lee\.cache\jittor\jt1.3.5\cl\py3.8.13\Windows-10-10.x2c\IntelRCoreTMi7x8f\default\cu11.2.67\jit\code__IN_SIZE_3__in0_dim_4__in0_type_float32__in1_dim_4__in1_type_float32__in2_dim_3__in2____hash_da8e5c85399b52fe_op.dll" -Xlinker -EXPORT:"?jit_run@CodeOp@jittor@@QEAAXXZ"


Process finished with exit code 1

  1. 运动的dem1-render.py、
  2. 第一次接触,这2天都在学习,感觉很强大,主要是希望用这个来做一些可微渲染的东西,在尝试第一个demo的时候报错,我尝试了删了cache重新更新,也将自己本地安装过得cuda先删了,并将环境变量中的相关配置也都删了,还是报waring和错误、
  3. 感谢帮忙看看,硬件显卡是RTX3070,CPU I7

你好,

已经复现错误,目前正在排查问题。

感谢你们的及时回复和解决,感谢。

已经更新 JRender,目前 Windows 上已经可以正常运行 demo1。

更多信息可以查看相关 PR Support Windows by lzhengning · Pull Request #18 · Jittor/jrender · GitHub

感谢,已可用