Installing a custom lmp version using cmake.
I load the mpich module - it appears in module list:
Currently Loaded Modulefiles:
- shared 5) matlab/R2018a
- sge/2011.11p1 6) gcc/10.2.0
- slurm/20.02.4 7) R/4.2.1
- cmsub 8) mpich/ge/open64/64/3.2
but when I use cmake to configure files
cmake -S ~/app/lammps-23Jun2022/cmake -B ~/app/lammps-23Jun2022/build -D PKG_MC=yes -D PKG_MISC=yes -D PKG_RIGID=yes
apparently does not find the MPICH library
– The following tools and libraries have been found and configured:
- Git
- OpenMP
- JPEG
- PNG
- ZLIB
So when I go to build the configuration shown below:
– <<< Build configuration >>>
LAMMPS Version: #define LAMMPS_VERSION “23 Jun 2022-rev. n3 - RBS Sep 2023”-1#define LAMMPS_VERSION “23 Jun 2022-rev. n3 - RBS Sep 2023”
Operating System: Linux CentOS Linux 7
Build type: RelWithDebInfo
Install path: /home/richst/.local
Generator: Unix Makefiles using /usr/bin/gmake
– Enabled packages: MC;MISC;RIGID
– <<< Compilers and Flags: >>>
– C++ Compiler: /cm/shared/apps/gcc/10.2.0/bin/c++
Type: GNU
Version: 10.2.0
C++ Flags: -O2 -g -DNDEBUG
Defines: LAMMPS_SMALLBIG;LAMMPS_MEMALIGN=64;LAMMPS_OMP_COMPAT=4;LAMMPS_JPEG;LAMMPS_PNG;LAMMPS_GZIP
– <<< Linker flags: >>>
– Executable name: lmp_rbs-n3
– Static library flags:
– Configuring done
it has substituted MPI STUBS for the actual library:
MPI v1.0: LAMMPS MPI STUBS for LAMMPS version 23 Jun 2022-rev. n3 - RBS Sep 2023
Is there something more necessary to make the mpi library findable by cmake???