Closed mkphuthi closed 2 years ago
Hi,
For the time being, you need to use a slightly older version of LAMMPS due to changes in the neighbor list API, like with pair_nequip. stable_29Sep2021_update2
should work here too.
Thanks for the response. Now I get the following with the stable_29Sep2021_update2
release of Lammps:
[ 73%] Building CXX object CMakeFiles/lammps.dir/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp.o
/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(361): error: namespace "std" has no member "exclusive_scan"
/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(399): warning: variable "jtype" was declared but never referenced
/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(318): warning: variable "newton_pair" was declared but never referenced
1 error detected in the compilation of "/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp".
make[2]: *** [CMakeFiles/lammps.dir/build.make:4556: CMakeFiles/lammps.dir/home/mphuthi/software/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:322: CMakeFiles/lammps.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Ah, that's something still left from the OpenMP implementation. For now, just change CMAKE_CXX_STANDARD
from 14 to 17 in lammps/cmake/CMakeLists.txt
.
You could even comment out that line from pair_allegro.cpp
, since it's in the CPU code that you won't be using with Kokkos+CUDA.
Commenting out that line in pair_nequip resolved it. Thanks
Hi,
I'm having trouble at the lammps compile step for Lammps with CUDA+Kokkos. My environment looks as follows: GPU: A100 OS: Debian GNU/Linux 10 (buster) gcc: 8.3.0 CUDA: 11.3 pytorch: 1.11 cmake: 3.23 All other packages are the latest version/repo/default.
Compile steps:
git clone https://github.com/lammps/lammps.git
git clone https://github.com/mir-group/pair_allegro.git
cd pair_allegro && ./patch_lammps.sh ../lammps/
make
The error I get is: