Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the compile error #10

Open
fsted opened this issue Dec 27, 2022 · 2 comments
Open

the compile error #10

fsted opened this issue Dec 27, 2022 · 2 comments

Comments

@fsted
Copy link

fsted commented Dec 27, 2022

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!😄

@StevenGrove
Copy link
Collaborator

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

@yongtaowang327
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants