-
Notifications
You must be signed in to change notification settings - Fork 8
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
More trouble in LAMMPS compilation due to "LAMMPS_NS" #19
Comments
Looks like you are trying to compile the development version of |
Thank you! Using the latest LAMMPS version made it compile. However when trying to run simple NVT or minimization for a test system (water molecules), I get an "std::out_of_range'" error:
I'm using a deployed.pth allegro model trained on nequip==0.5.6, and thus I use "pair_style allegro3232" as seen in #12. |
Hi, With gdb you can pinpoint the line where it fails. Something like Keep in mind that if you use the stress branch branch of pair_allegro/pair_allegro_kokkos.cpp Lines 304 to 315 in 176db81
|
This is the error when running with gdb:
|
After unsuccessful debugging, turns out @anjohan was right and my input .yaml file was just wrong. |
Hello,
despite reading through the past issues I still can't manage to compile LAMMPS with pair_allegro.
My environment:
gcc: 9.4.0
CUDA: 11.2.2
cudnn: 8.1.0.77-11.2
pytorch: 1.11
cmake: 3.23.1
GPU: A100
I'm getting libtorch with: wget https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcu113.zip , and I'm using lammps-stable_29Sep2021_update2 that I got from here https://github.com/lammps/lammps/releases/tag/stable_29Sep2021_update2
I run "cmake ../cmake -DCMAKE_PREFIX_PATH=../../libtorch/ -DMKL_INCLUDE_DIR=
python -c "import sysconfig;from pathlib import Path;print(Path(sysconfig.get_paths()[\"include\"]).parent)"
-DPKG_KOKKOS=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON"And I compile with "make -j 16", getting the errors:
/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(129): error: class "LAMMPS_NS::Neighbor" has no member "add_request"
/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(129): error: namespace "LAMMPS_NS::NeighConst" has no member "REQ_FULL"
/lammps-stable_29Sep2021_update2/src/pair_allegro.cpp(129): error: namespace "LAMMPS_NS::NeighConst" has no member "REQ_GHOST"
The text was updated successfully, but these errors were encountered: