-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
Run libtorch examples, export error "undefined reference to xxx" #73829
Comments
Check your CUDA version using |
My cuda is 11.4. I will try with cuda 11.1. Thanks! |
I still had the same problem with libtorch cu113 and cuda 11.4. |
I try to install pytorch from source. i have build successfully but i have an error when i try to import a module from d2go Error initial : Do you have any idea to solve it ? |
nvcc --version
Therefore I choose the
How to solve it ? Thanks a lot! |
hi ~, i have the same problem,you have solved it? |
same here, but the error only happens when I try to use |
I think using matched cuda and libtorch versions solves this issue. Moreover maybe we should only use the listed versions of libtorch on the official website (currently 11.8, 12.1 and 12.4)? |
🐛 Describe the bug
When run the pytorch example: https://pytorch.org/cppdocs/installing.html
CMakeLists.txt files:
cpp:
cmake command:
will appears:
but seems the file dependencies is ok:
Versions
libtorch version:
https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.10.2%2Bcu113.zip
os: Ubuntu 18.04
cmake version: 3.10.2
cc @ezyang @seemethere @malfet
The text was updated successfully, but these errors were encountered: