[Feature Request] Support system available lammps
Opened this issue · 5 comments
Summary
On HPC clusters, highly optimized softwares are most often already available. Allow deepmd-kit to build and link to an already available and correctly configured lammps.
Detailed Description
Software is already available on numerous systems, allow one to build deepmd-kit with already optimized available lammps and not try to download or build it from sources.
If one defines LAMMPS_ROOT
, for example, then prefer it to building from sources.
Further Information, Files, and Links
No response
There is the CMake option LAMMPS_SOURCE_ROOT
to build a LAMMPS plugin.
For details of the plugin mode, refer to LAMMPS documentation Compiling plugins and plugin command.
Yes, I did try to use it, but it needs a source tree, rather then an already built and available lammps installation.
For example, this
says that thesrc
needs to exists, but on an installed lammps, it does not, nor contains the source files.
Our system and optimized lammps is already built with the correct settings.
That's is why it would be great if one could link on an already available installation rather then to compile one.
Unlike other libraries, LAMMPS doesn't install header files required by the plugin into the system.
deepmd-kit/source/lmp/pair_deepmd.cpp
Lines 11 to 25 in db2bc94
deepmd-kit/source/lmp/pppm_dplr.cpp
Lines 6 to 17 in db2bc94
deepmd-kit/source/lmp/compute_deeptensor_atom.cpp
Lines 7 to 19 in db2bc94