-
I just used Cmake to compile Lammps as well as DeePMD-kit interface ( Some environment:
I have modified cmake -C ../cmake/presets/most.cmake -C ../cmake/presets/nolib.cmake \
-D BUILD_MPI=yes -D BUILD_OMP=yes -D LAMMPS_MACHINE=mpi \
-D PKG_PLUMED=yes -D PKG_H5MD=yes -D PKG_COLVARS=yes \
-D PKG_USER-DEEPMD=ON -D CMAKE_CXX_FLAGS="-DHIGH_PREC" \
-D CMAKE_CXX_FLAGS="-I${deepmd_root}/include -I${tensorflow_root}/include -L${deepmd_root}/lib -L${tensorflow_root}/lib -Wl,--no-as-needed -lrt -ldeepmd_op -ldeepmd_op_cuda -ldeepmd -ltensorflow_cc -ltensorflow_framework -Wl,-rpath=${deepmd_root}/lib -Wl,-rpath=${tensorflow_root}/lib" \
-D CMAKE_INSTALL_PREFIX=${tensorflow_root} ../cmake However, I finally ran into the very issue as the error log shown here:
How could I move on if using cmake? |
Beta Was this translation helpful? Give feedback.
Answered by
Yi-FanLi
Aug 10, 2022
Replies: 1 comment 6 replies
-
You should add -DLAMMPS_VERSION_NUMBER=20220623 in your CMAKE_CXX_FLAGS. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
Cloudac7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should add -DLAMMPS_VERSION_NUMBER=20220623 in your CMAKE_CXX_FLAGS.