Jittor进行编译时遇到的类型转换错误和不一致的DLL链接问题,涉及到CUDA集成和编译命令配置的不正确

windows报错信息:
”[i 0410 18:33:32.900000 52 compiler.py:956] Jittor(1.3.9.5) src: d:\anaconda\envs\jdiffusion\lib\site-packages\jittor
[i 0410 18:33:32.917000 52 compiler.py:957] cl at C:\Users\Administrator.cache\jittor\msvc\VC_____\bin\cl.exe(19.29.30133)
[i 0410 18:33:32.917000 52 compiler.py:958] cache_path: C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default
[i 0410 18:33:32.919000 52 install_cuda.py:93] cuda_driver_version: [12, 2, 0]
[i 0410 18:33:32.946000 52 __init__.py:412] Found C:\Users\Administrator.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\Administrator.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 0410 18:33:32.995000 52 compiler.py:1011] cuda key:cu11.2.67
[i 0410 18:33:32.996000 52 __init__.py:227] Total mem: 15.70GB, using 5 procs for compiling.
data.cc
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(418): warning C4273: ‘jittor::tflag_count’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(88): note: see previous definition of ‘tflag_count’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(418): warning C4273: ‘jittor::nt’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(18): note: see previous definition of ‘nt’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(419): warning C4273: ‘jittor::lived_nodes’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(15): note: see previous definition of ‘lived_nodes’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(419): warning C4273: ‘jittor::lived_nodes_id’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(16): note: see previous definition of ‘lived_nodes_id’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(419): warning C4273: ‘jittor::total_node’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(17): note: see previous definition of ‘total_node’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(419): warning C4273: ‘jittor::free_buffer’: inconsistent dll linkage
d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\node.h(19): note: see previous definition of ‘free_buffer’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): error C2440: ‘type cast’: cannot convert from ‘void (__cdecl jittor::Node::* )(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(421): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(422): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(422): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(422): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(422): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(423): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(423): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(426): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(426): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(426): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(426): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(427): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(427): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(439): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(439): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(441): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(441): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(443): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(443): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(445): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(445): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(446): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(446): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(455): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(455): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(457): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(457): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(457): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(457): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(458): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(458): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(458): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(458): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(459): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(459): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(460): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(460): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(460): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(460): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(462): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(462): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(464): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(464): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(465): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(465): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(466): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(466): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(467): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(467): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(468): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(468): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(469): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(469): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(470): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(470): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(473): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(473): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(474): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(474): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(474): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(474): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(479): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to ‘void (__cdecl *)(jittor::Node )’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(479): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(480): error C2440: ‘type cast’: cannot convert from 'void (__cdecl jittor::Node::
)(void)’ to 'void (cdecl *)(jittor::Node *)’
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(480): note: There is no context in which this conversion is possible
C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc(558): warning C4551: function call missing argument list
Traceback (most recent call last):
File “C:\Users\Administrator\JDiffusion\examples\dreambooth\train.py”, line 16, in
import jittor as jt
File "D:\Anaconda\envs\jdiffusion\lib\site-packages\jittor_init
.py", line 18, in
from . import compiler
File “D:\Anaconda\envs\jdiffusion\lib\site-packages\jittor\compiler.py”, line 1346, in
run_cmd(fix_cl_flags(f""{cc_path}" {dflags} -include "{vdp}" "{data_s_path}" -c -o "{data_o_path}""))
File "D:\Anaconda\envs\jdiffusion\lib\site-packages\jittor_utils_init
.py", line 188, in run_cmd
raise Exception(err_msg)
Exception: Run cmd failed: “C:\Users\Administrator.cache\jittor\msvc\VC_____\bin\cl.exe” -std:c++17 -EHa -MD -utf-8 -nologo -I"C:\Users\Administrator.cache\jittor\msvc\VC\include" -
I"C:\Users\Administrator.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\Administrator.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\Administrator.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX -I"d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src" -I"d:\anaconda\envs\jdiffusion\include" -DHAS_CUDA -DIS_CUDA -I"C:\Users\Administrator.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include" -I"d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\extern\cuda\inc" -I"C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67" -O2 -FI “d:\anaconda\envs\jdiffusion\lib\site-packages\jittor\src\utils\vdp” “C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.cc” -c -Fo: “C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67\data.obj” -link -LIBPATH:“d:\anaconda\envs\jdiffusion\libs” python39.lib -LIBPATH:“C:\Users\Administrator.cache\jittor\msvc\VC\lib” -LIBPATH:“C:\Users\Administrator.cache\jittor\msvc\win10_kits\lib\um\x64” -LIBPATH:“C:\Users\Administrator.cache\jittor\msvc\win10_kits\lib\ucrt\x64” cudart.lib -LIBPATH:“C:\Users\Administrator.cache\jittor\jtcuda\cuda11.2_cudnn8_win\lib\x64” -LIBPATH:“C:\Users\Administrator.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin” -LIBPATH:“C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default\cu11.2.67” -LIBPATH:"C:\Users\Administrator.cache\jittor\jt1.3.9\cl\py3.9.19\Windows-10-10.xcd\13thGenIntelRCx5c\a034\default“

Linux报错信息:”[i 0410 18:45:52.685814 72 compiler.py:956] Jittor(1.3.9.2) src: /mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor
[i 0410 18:45:52.687288 72 compiler.py:957] g++ at /usr/bin/g++(11.4.0)
[i 0410 18:45:52.687317 72 compiler.py:958] cache_path: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/2f2f/default
[i 0410 18:45:52.688972 72 __init__.py:412] Found nvcc(11.6.55) at /usr/local/cuda/bin/nvcc.
[i 0410 18:45:52.714846 72 __init__.py:412] Found gdb(12.0.90) at /usr/bin/gdb.
[i 0410 18:45:52.717230 72 __init__.py:412] Found addr2line(2.38) at /usr/bin/addr2line.
[i 0410 18:45:52.766703 72 compiler.py:1011] cuda key:cu11.6.55_sm_89
[i 0410 18:45:52.903721 72 __init__.py:227] Total mem: 62.60GB, using 16 procs for compiling.
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘…’:
435 | function(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘…’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
multiprocessing.pool.RemoteTraceback: “
“”"
Traceback (most recent call last):
File “/mnt/anaconda/envs/Jittor/lib/python3.9/multiprocessing/pool.py”, line 125, in worker
result = (True, func(*args, **kwds))
File “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor_utils/init.py”, line 197, in do_compile
return cc.cache_compile(cmd, cache_path, jittor_path)
RuntimeError: [f 0410 18:45:54.039106 72 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: “/usr/local/cuda/bin/nvcc” “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/src/misc/nan_checker.cu” -std=c++14 -Xcompiler -fPIC -Xcompiler -march=native -Xcompiler -fdiagnostics-color=always -I"/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/src" -I/mnt/anaconda/envs/Jittor/include/python3.9 -I/mnt/anaconda/envs/Jittor/include/python3.9 -DHAS_CUDA -DIS_CUDA -I"/usr/local/cuda/include" -I"/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/extern/cuda/inc" -I"/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/2f2f/default/cu11.6.55_sm_89" -O2 -c -o “/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/2f2f/default/cu11.6.55_sm_89/obj_files/nan_checker.cu.o” -x cu --cudart=shared -ccbin=“/usr/bin/g++” -w -I"/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/extern/cuda/inc"
“”"

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

Traceback (most recent call last):
File “/mnt/lt/JDiffusion-master/examples/dreambooth/train.py”, line 16, in <module>
import jittor as jt
File “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/init.py”, line 18, in <module>
from . import compiler
File “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/compiler.py”, line 1357, in <module>
compile(cc_path, cc_flags+opt_flags, files, ‘jittor_core’+extension_suffix)
File “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/compiler.py”, line 151, in compile
jit_utils.run_cmds(cmds, cache_path, jittor_path, “Compiling “+base_output)
File “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor_utils/init.py”, line 251, in run_cmds
for i,_ in enumerate(p.imap_unordered(do_compile, cmds)):
File “/mnt/anaconda/envs/Jittor/lib/python3.9/multiprocessing/pool.py”, line 870, in next
raise value
RuntimeError: [f 0410 18:45:54.039106 72 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: “/usr/local/cuda/bin/nvcc” “/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/src/misc/nan_checker.cu” -std=c++14 -Xcompiler -fPIC -Xcompiler -march=native -Xcompiler -fdiagnostics-color=always -I”/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/src” -I/mnt/anaconda/envs/Jittor/include/python3.9 -I/mnt/anaconda/envs/Jittor/include/python3.9 -DHAS_CUDA -DIS_CUDA -I"/usr/local/cuda/include" -I"/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/extern/cuda/inc" -I"/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/2f2f/default/cu11.6.55_sm_89" -O2 -c -o “/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/2f2f/default/cu11.6.55_sm_89/obj_files/nan_checker.cu.o” -x cu --cudart=shared -ccbin=“/usr/bin/g++” -w -I"/mnt/anaconda/envs/Jittor/lib/python3.9/site-packages/jittor/extern/cuda/inc" ”

以上为不同的两台电脑,分别是windows系统与linux系统下的报错信息。所安装的依赖均按照赛题二提供的baseline说明文档进行安装。

尝试在linux更新最新的jittor JittorRepos/jittor: Jittor is a high-performance deep learning framework based on JIT compiling and meta-operators. (github.com) ,使用python -m jittor_utils.install_cuda 让jittor安装cuda12.2 for g++11,

仍然报错:“/bin/bash /mnt/lt/JDiffusion/examples/dreambooth/train_all.sh
(jdiffusion) lxh@lxh-System-Product-Name:/mnt/lt/JDiffusion/examples/dreambooth$ /bin/bash /mnt/lt/JDiffusion/examples/dreambooth/train_all.sh
[i 0411 03:17:27.397207 48 compiler.py:956] Jittor(1.3.9.5) src: /mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor
[i 0411 03:17:27.398537 48 compiler.py:957] g++ at /usr/bin/g++(11.4.0)
[i 0411 03:17:27.398579 48 compiler.py:958] cache_path: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default
[i 0411 03:17:27.411959 48 install_cuda.py:93] cuda_driver_version: [12, 0]
[i 0411 03:17:27.412098 48 install_cuda.py:81] restart /mnt/anaconda/envs/jdiffusion/bin/python [‘train.py’, ‘–pretrained_model_name_or_path=stabilityai/stable-diffusion-2-1’, ‘–instance_data_dir=A_style/00/images’, ‘–output_dir=style/style_00’, ‘–instance_prompt=style_00’, ‘–resolution=512’, ‘–train_batch_size=1’, ‘–gradient_accumulation_steps=1’, ‘–learning_rate=1e-4’, ‘–lr_scheduler=constant’, ‘–lr_warmup_steps=0’, ‘–max_train_steps=500’, ‘–seed=0’]
[i 0411 03:17:27.456544 56 compiler.py:956] Jittor(1.3.9.5) src: /mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor
[i 0411 03:17:27.457940 56 compiler.py:957] g++ at /usr/bin/g++(11.4.0)
[i 0411 03:17:27.457983 56 compiler.py:958] cache_path: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default
[i 0411 03:17:27.469482 56 install_cuda.py:93] cuda_driver_version: [12, 0]
[i 0411 03:17:27.472580 56 __init__.py:412] Found /home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc(11.2.152) at /home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc.
[i 0411 03:17:27.501496 56 __init__.py:412] Found gdb(12.0.90) at /usr/bin/gdb.
[i 0411 03:17:27.504930 56 __init__.py:412] Found addr2line(2.38) at /usr/bin/addr2line.
[i 0411 03:17:27.548144 56 compiler.py:1011] cuda key:cu11.2.152_sm_89
[i 0411 03:17:27.560190 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89
[i 0411 03:17:27.560273 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/jit
[i 0411 03:17:27.560305 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/obj_files
[i 0411 03:17:27.560333 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/gen
[i 0411 03:17:27.560360 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/tmp
[i 0411 03:17:27.560385 56 compiler.py:34] Create cache dir: /home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/checkpoints
[i 0411 03:17:36.236693 84 __init__.py:227] Total mem: 62.60GB, using 16 procs for compiling.
/usr/include/stdio.h(189): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(201): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(223): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(260): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(285): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(294): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(303): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(309): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(315): error: attribute “malloc” does not take arguments

/usr/include/stdio.h(830): error: attribute “malloc” does not take arguments

/usr/include/stdlib.h(566): error: attribute “malloc” does not take arguments

/usr/include/stdlib.h(570): error: attribute “malloc” does not take arguments

/usr/include/stdlib.h(799): error: attribute “malloc” does not take arguments

/usr/include/c++/11/type_traits(1406): error: type name is not allowed

/usr/include/c++/11/type_traits(1406): error: type name is not allowed

/usr/include/c++/11/type_traits(1406): error: identifier “__is_same” is undefined

/usr/include/wchar.h(155): error: attribute “malloc” does not take arguments

/usr/include/wchar.h(582): error: attribute “malloc” does not take arguments

/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src/misc/cstr.h(19): error: no instance of overloaded function “std::unique_ptr<_Tp [], _Dp>::reset [with _Tp=char, _Dp=std::default_delete<char []>]” matches the argument list
argument types are: (char *)
object type is: jittor::unique_ptr<char []>

/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src/misc/cstr.h(25): error: no instance of overloaded function “std::unique_ptr<_Tp [], _Dp>::reset [with _Tp=char, _Dp=std::default_delete<char []>]” matches the argument list
argument types are: (char *)
object type is: jittor::unique_ptr<char []>

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long, std::is_same<int, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long, _Ret=int, _CharT=char, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6620): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long, std::is_same<long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long, _Ret=long, _CharT=char, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6625): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const unsigned long, std::is_same<unsigned long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=unsigned long, _Ret=unsigned long, _CharT=char, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6630): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long long, std::is_same<long long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long long, _Ret=long long, _CharT=char, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6635): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const unsigned long long, std::is_same<unsigned long long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=unsigned long long, _Ret=unsigned long long, _CharT=char, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6640): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const float, std::is_same<float, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=float, _Ret=float, _CharT=char, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6646): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const double, std::is_same<double, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=double, _Ret=double, _CharT=char, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6650): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long double, std::is_same<long double, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long double, _Ret=long double, _CharT=char, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6654): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long, std::is_same<int, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long, _Ret=int, _CharT=wchar_t, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6751): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long, std::is_same<long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long, _Ret=long, _CharT=wchar_t, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6756): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const unsigned long, std::is_same<unsigned long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=unsigned long, _Ret=unsigned long, _CharT=wchar_t, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6761): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long long, std::is_same<long long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long long, _Ret=long long, _CharT=wchar_t, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6766): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const unsigned long long, std::is_same<unsigned long long, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=unsigned long long, _Ret=unsigned long long, _CharT=wchar_t, _Base=]”
/usr/include/c++/11/bits/basic_string.h(6771): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const float, std::is_same<float, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=float, _Ret=float, _CharT=wchar_t, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6777): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const double, std::is_same<double, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=double, _Ret=double, _CharT=wchar_t, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6781): here

/usr/include/c++/11/ext/string_conversions.h(85): error: no instance of overloaded function “_Range_chk::_S_chk” matches the argument list
argument types are: (const long double, std::is_same<long double, int>)
detected during instantiation of “_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base…), const char *, const _CharT *, std::size_t *, _Base…) [with _TRet=long double, _Ret=long double, _CharT=wchar_t, _Base=<>]”
/usr/include/c++/11/bits/basic_string.h(6785): here

36 errors detected in the compilation of “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src/misc/nan_checker.cu”.
multiprocessing.pool.RemoteTraceback:
“”"
Traceback (most recent call last):
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/multiprocessing/pool.py”, line 125, in worker
result = (True, func(*args, **kwds))
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor_utils/init.py”, line 197, in do_compile
return cc.cache_compile(cmd, cache_path, jittor_path)
RuntimeError: [f 0411 03:17:40.329835 84 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: “/home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc” “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src/misc/nan_checker.cu” -std=c++14 -Xcompiler -fPIC -Xcompiler -march=native -Xcompiler -fdiagnostics-color=always -I"/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src" -I/mnt/anaconda/envs/jdiffusion/include/python3.9 -I/mnt/anaconda/envs/jdiffusion/include/python3.9 -DHAS_CUDA -DIS_CUDA -I"/home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/include" -I"/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/extern/cuda/inc" -I"/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89" -O2 -c -o “/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/obj_files/nan_checker.cu.o” -x cu --cudart=shared -ccbin=“/usr/bin/g++” -w -I"/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/extern/cuda/inc"
“”"

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

Traceback (most recent call last):
File “/mnt/lt/JDiffusion/examples/dreambooth/train.py”, line 16, in
import jittor as jt
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/init.py”, line 18, in
from . import compiler
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/compiler.py”, line 1357, in
compile(cc_path, cc_flags+opt_flags, files, ‘jittor_core’+extension_suffix)
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/compiler.py”, line 151, in compile
jit_utils.run_cmds(cmds, cache_path, jittor_path, “Compiling “+base_output)
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor_utils/init.py”, line 251, in run_cmds
for i,_ in enumerate(p.imap_unordered(do_compile, cmds)):
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/multiprocessing/pool.py”, line 870, in next
raise value
RuntimeError: [f 0411 03:17:40.329835 84 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: “/home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc” “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src/misc/nan_checker.cu” -std=c++14 -Xcompiler -fPIC -Xcompiler -march=native -Xcompiler -fdiagnostics-color=always -I”/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/src” -I/mnt/anaconda/envs/jdiffusion/include/python3.9 -I/mnt/anaconda/envs/jdiffusion/include/python3.9 -DHAS_CUDA -DIS_CUDA -I"/home/lxh/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/include" -I"/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/extern/cuda/inc" -I"/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89" -O2 -c -o “/home/lxh/.cache/jittor/jt1.3.9/g++11.4.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/obj_files/nan_checker.cu.o” -x cu --cudart=shared -ccbin=“/usr/bin/g++” -w -I"/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/extern/cuda/inc"

从报错信息里面看到你正在使用g++11,g++11不支持低版本的cuda,推荐你使用g++9或者升级cuda驱动,我们提供了cuda12.2+cudnn8的驱动,是适配g++11的

你们提供的cuda12.2需要cuda_driver_version >= [12,2],可是我这边是12.0.

那你可以尝试使用g++9配合提供的cuda11.2的包试一下

你好@ [Blueocean918],请问你在windows上解决了这个问题吗?我也遇到相同的报错