Open Ynao3 opened 5 months ago
Having just went through this myself recently, there seems to be an issue with conda and this verison of pytorch.
I solved it with pip install --force-reinstall torch==1.13.1 --index-url https://download.pytorch.org/whl/cpu
(or you could remove the index-url if you want pytorch with gpu support, but then you also need to build with cuda support which is more involved).
Having just went through this myself recently, there seems to be an issue with conda and this verison of pytorch.
I solved it with
pip install --force-reinstall torch==1.13.1 --index-url https://download.pytorch.org/whl/cpu
(or you could remove the index-url if you want pytorch with gpu support, but then you also need to build with cuda support which is more involved).
This works for me
/home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference to
iJIT_IsProfilingActive' /home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference to
iJIT_GetNewMethodID' /home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference toiJIT_NotifyEvent' collect2: error: ld returned 1 exit status CMakeFiles/test_server.dir/build.make:146: recipe for target 'test_server' failed make[2]: *** [test_server] Error 1 CMakeFiles/Makefile2:356: recipe for target 'CMakeFiles/test_server.dir/all' failed make[1]: *** [CMakeFiles/test_server.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference to
iJIT_IsProfilingActive' /home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference toiJIT_GetNewMethodID' /home/kkk/anaconda3/envs/polymetis-local/lib/python3.8/site-packages/torch/lib/libtorch_cpu.so: undefined reference to
iJIT_NotifyEvent' collect2: error: ld returned 1 exit status CMakeFiles/run_server.dir/build.make:145: recipe for target 'run_server' failed make[2]: [run_server] Error 1 CMakeFiles/Makefile2:247: recipe for target 'CMakeFiles/run_server.dir/all' failed make[1]: [CMakeFiles/run_server.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2