Undefined Reference Errors When Linking Against PyTorch in CMake #17008
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
I am encountering linker errors when trying to build my project using CMake with PyTorch. The build process fails with several undefined reference errors related to PyTorch symbols. Below are the details of the error messages:
During the CMake configuration, the following warnings are displayed:
Here are my configuration options
It seems that the "kineto" library is not available in the Linux version of Torch.
System Information
OS: Ubuntu 22.04
CMake Version: 3.28.3
GCC Version: 13.2.0
PyTorch Version: 1.17 (installed via pip,also tried version 2.2.0)
Python Version: 3.9.16 (within a virtual environment)
The linker errors indicate that certain PyTorch functions are not found. This typically happens when the necessary libraries are not linked correctly or there is a mismatch in the ABI (Application Binary Interface).
Any guidance or suggestions would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: