- cmake
- lapack math library
- C/C++ compiler (GCC 9 or newer)
- Fortran 77 compiler
An example of working setup at Purdue supercomputers can be foound in module.sh script.
AppleClang 14 works on M2 MacOS Ventura.
For ML/EFP models, one needs to use LibTorch library. Install LibTorch (C++ frontend) of PyTorch. Consult Libtorch/Pytorch webpages for detail: https://pytorch.org/cppdocs/
You can opt out and configure with EFP-only installation - see the next section.
setup.sh or setup.csh are used to set up environmental variables. The first two are mandatory:
TORCH_SWITCH
is the variable governing compilation
with or without LibTorch.
LIBEFP_DIR
is a path to LibEFP directory with source codes.
INSTALLATION_DIR
is the installation directory.
TORCH_INSTALLED_DIR
and LIBTORCH_INCLUDE_DIRS
are paths to the LibTorch
installation and included directories.
Further tuning can be done in CMakeLists.txt
. Otherwise,
run ./compile.sh
to compile.
Executable efpmd
will be in build/efpmd/efpmd
and in
Test jobs are contained in tests
directory.To check the complilation,
do
cd tests
make check
This will run all the test jobs and report SUCCESS/FAILURE
. Examine any failed jobs carefully.