Skip to content
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

pair_allegro Compilation Error when compiling with libtorch binary #56

Open
maxsw02 opened this issue Oct 31, 2024 · 1 comment
Open

Comments

@maxsw02
Copy link

maxsw02 commented Oct 31, 2024

Hi Everyone,

I am trying to compile pair_allegro with the LAMMPS package using the following commands:

./patch_lammps.sh ../lammps-allegro/

cd ../lammps-allegro/

mkdir allegro_build

cd allegro_build/

cmake ../cmake -DCMAKE_PREFIX_PATH=/home/max/Desktop/libtorch -DMKL_INCLUDE_DIR=python -c "import sysconfig;from pathlib import Path;print(Path(sysconfig.get_paths()["include"]).parent)" -DPKG_OPENMP=on

make -j 8
``

After the last command I get the following compile error resulting from the pair_allegro.cpp code.

image

For some more background information, to get MKL, I used conda install mkl-include, and for the libtorch library, I downloaded a binary version. I did this because I do not have GPU in my computer thus I do not have CUDA. I am using the latest stable version of lammps. I am unsure if this because of a bug, the wrong version of LAMMPS, or does pair_allegro need CUDA. Any suggestions would be much appreciated.

Sincerely,
Max

@anjohan
Copy link
Collaborator

anjohan commented Nov 5, 2024

Hi Max,

pair_allegro assumes that LAMMPS is being built with MPI support, and it looks like MPI was not detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants