Fail to build with DeePKS when following the advanced installation guide. #2364
Closed
ignisfatuus28
started this conversation in
General
Replies: 1 comment
-
I fixed it by myself, it turns out to be I placed the libtorch file in the wrong place. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear users and developers,
I faced some problems while building with DeePKS on ubuntu 22.04.
GCC and CMAKE version is checked.
LibTorch with cxx11 ABI supporting CPU and Libnpy are also downloaded and unzipped.
My input is:
/abacus-develop$ cmake -B build -DENABLE_DEEPKS=1 -DTorch_DIR=
/libtorch/share/cmake/Torch/ -Dlibnpy_INCLUDE_DIR=/libnpy/includewhich is exactly the same command in the guide.
But the error
CMake Error at CMakeLists.txt:329 (find_package):
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Torch", but
CMake did not find one.
Could not find a package configuration file provided by "Torch" with any of
the following names:
Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
"Torch_DIR" to a directory containing one of the above files. If "Torch"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/""/abacus-develop/build/CMakeFiles/CMakeOutput.log".
See also "/home/""/abacus-develop/build/CMakeFiles/CMakeError.log".
pops out.
How can it solve it?
Thanks and regards.
Beta Was this translation helpful? Give feedback.
All reactions