复现此问题的代码或者描述、
按照github上jittor和JRender的介绍安装了环境,使用命令python -m jittor_utils.install_cuda自动安装了cuda到C:\Users\CwoloC.cache\jittor\jtcuda\cuda11.2_cudnn8_win,直接运行官方demo1代码会出现报错。已通过英伟达面板确认可支持cuda至12.1.109版本,显卡1050,cpu i5-8300H。
Jittor 运行的完整 log(建议复制粘贴运行输出,如果可能请不要使用截图)、
[i 0702 17:37:58.244000 48 compiler.py:956] Jittor(1.3.8.5) src: d:\pythonlibrary\lib\site-packages\jittor
[i 0702 17:37:58.266000 48 compiler.py:957] cl at C:\Users\CwoloC\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe(19.29.30133)
[i 0702 17:37:58.266000 48 compiler.py:958] cache_path: C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default
[i 0702 17:37:58.270000 48 install_cuda.py:93] cuda_driver_version: [12, 1, 0]
[i 0702 17:37:58.312000 48 __init__.py:411] Found C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 0702 17:37:58.389000 48 compiler.py:1011] cuda key:cu11.2.67
[i 0702 17:37:58.391000 48 __init__.py:227] Total mem: 15.88GB, using 5 procs for compiling.
[i 0702 17:37:59.900000 48 jit_compiler.cc:28] Load cc_path: C:\Users\CwoloC\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe
[i 0702 17:37:59.903000 48 init.cc:62] Found cuda archs: [61,]
[i 0702 17:38:01.742000 48 cuda_flags.cc:49] CUDA enabled.
[e 0702 17:38:03.904000 48 log.cc:565] cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.cc
d:/pythonlibrary/lib/site-packages/jittor/src\misc/cuda_atomic.h(138): error: no instance of overloaded function "atomicCAS" matches the argument list
argument types are: (unsigned short *, unsigned short, unsigned short)
d:/pythonlibrary/lib/site-packages/jittor/src\misc/cuda_atomic.h(153): error: no instance of overloaded function "atomicCAS" matches the argument list
argument types are: (unsigned short *, unsigned short, unsigned short)
2 errors detected in the compilation of "C:/Users/CwoloC/.cache/jittor/jt1.3.8/cl/py3.11.4/Windows-10-10.xb4/IntelRCoreTMi5xbf/default/cu11.2.67/jit/__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.cc".
__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.cc
Traceback (most recent call last):
File "D:\html_work_tools\jittorCode\jrender\demo1-render.py", line 67, in <module>
main()
File "D:\html_work_tools\jittorCode\jrender\demo1-render.py", line 26, in main
mesh = jr.Mesh.from_obj(args.filename_input, load_texture=True, texture_res=5, texture_type='surface', dr_type='softras')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\html_work_tools\jittorCode\jrender\jrender\structures\mesh.py", line 306, in from_obj
vertices, faces, textures, normal_textures, TBN, face_texcoords = load_obj(filename_obj,
^^^^^^^^^^^^^^^^^^^^^^
File "D:\html_work_tools\jittorCode\jrender\jrender\io\load_obj.py", line 19, in load_obj
return load_obj_for_softras(filename_obj, normalization=normalization, load_texture=load_texture, texture_res=texture_res, texture_type=texture_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\html_work_tools\jittorCode\jrender\jrender\io\utils\_load_obj_for_softras.py", line 184, in load_obj
textures ,normal_textures,TBN ,face_texcoords = load_textures(filename_obj, filename_mtl, texture_res,face_vertices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\html_work_tools\jittorCode\jrender\jrender\io\utils\_load_obj_for_softras.py", line 87, in load_textures
textures = jt.ones((faces.shape[0], 3), dtype="float32").numpy().tolist()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 0702 17:38:03.905000 48 parallel_compiler.cc:331] Error happend during compilation:
[Error] source file location:C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default\cu11.2.67\jit\__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.cc
Compile fused operator(0/5)failed:[Op(9:0:1:1:i0:o1:s0,array->10),Op(7:0:1:1:i1:o1:s0,unary.cast->8),Op(13:0:1:1:i1:o1:s0,broadcast_to->14),Op(15:0:1:1:i2:o1:s0,binary.subtract->16),]
Reason: [f 0702 17:38:03.904000 48 log.cc:608] Check failed ret(1) == 0(0) Run cmd failed: "C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe" "C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default\cu11.2.67\jit\__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.cc" -shared -L"d:\pythonlibrary\libs" -lpython311 -Xcompiler -EHa -Xcompiler -MD -Xcompiler -utf-8 -I"C:\Users\CwoloC\.cache\jittor\msvc\VC\include" -I"C:\Users\CwoloC\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\CwoloC\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\CwoloC\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX -L"C:\Users\CwoloC\.cache\jittor\msvc\VC\lib" -L"C:\Users\CwoloC\.cache\jittor\msvc\win10_kits\lib\um\x64" -L"C:\Users\CwoloC\.cache\jittor\msvc\win10_kits\lib\ucrt\x64" -I"d:\pythonlibrary\lib\site-packages\jittor\src" -I"d:\pythonlibrary\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\pythonlibrary\lib\site-packages\jittor\extern\cuda\inc" -lcudart -L"C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64" -L"C:\Users\CwoloC\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin" -I"C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default\cu11.2.67" -L"C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default\cu11.2.67" -L"C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default" -l"jit_utils_core.cp311-win_amd64" -l"jittor_core.cp311-win_amd64" -x cu --cudart=shared -ccbin="C:\Users\CwoloC\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" --use_fast_math -w -I"d:\pythonlibrary\lib\site-packages\jittor\extern/cuda/inc" -arch=compute_61 -code=sm_61 -o "C:\Users\CwoloC\.cache\jittor\jt1.3.8\cl\py3.11.4\Windows-10-10.xb4\IntelRCoreTMi5xbf\default\cu11.2.67\jit\__opkey0_array__T_int32__o_1__opkey1_unary__Tx_int32__Ty_float32__OP_cast__opkey2_broadcas___hash_4ad7503c06a1beac_op.dll" -Xlinker -EXPORT:"?jit_run@FusedOp@jittor@@QEAAXXZ"