TreeFilter-Torch icon indicating copy to clipboard operation
TreeFilter-Torch copied to clipboard

the compile error

Open fsted opened this issue 3 years ago • 2 comments

Hi,thanks for your work,it'sgreat.But I meet a error when i try to compile it: -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-37/tree_filter_cuda.cpython-37m-x86_64-linux-gnu.so /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -lc10: not found /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -ltorch: not found /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -ltorch_cpu: not found /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -ltorch_python: not found /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -lc10_cuda: not found /home/share/lihaoyu/anaconda3/envs/sas/compiler_compat/ld: cannot find -ltorch_cuda: not found my environment: torch1.7.1 cuda10.1 gcc7.5.0 Look forward to your answer!😄

fsted avatar Dec 27 '22 12:12 fsted

Did you try to compile without these flags? i.e, "-ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda"

StevenGrove avatar Dec 28 '22 06:12 StevenGrove

Did you try to compile without these flags? i.e, "-ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda"

Same issue. How to complie without these flags? Could you explain it in detail? Thanks a lot!

yongtaowang327 avatar Mar 02 '23 04:03 yongtaowang327