The error message suggests that the linker is unable to find the MPI library necessary to build. Typically, make serial
builds lammps without MPI support. From make help
(called in the lammps/src
directory):
# serial = RedHat Linux box, g++4, no MPI, no FFTs
However, the Lammps GPU package requires MPI. Thus,
- Make sure you have the necessary MPI libraries installed.
- Build lammps with one of the following commands (see
make help
for more options):
make g++
(Compiler: g++4, MPI implementation: MPICH2)
make g++3
(Compiler: g++3, MPI implementation: MPICH2)
make linux
(Compiler: icc, MPI implementation: MPICH2)
make openmpi
(Compiler: mpic++, MPI implementation: OpenMPI-1.1)