Benchmarking: LAMMPS
Jump to navigation
Jump to search
Compilation using openmpi
Unpack the tar file Navigate into src folder Navigate into MAKE folder Edit Makefile.openmpi
Remove the flags for FFTW libaray, save and exit
Naviagate to parent folder and type
make openmpi
cp lmp_openmpi ../bench
mpirun -np 4 lmp_openmpi < in.ljCompilation using g++
Navigate into MAKE folder Edit Makefile.g++
Change compiler and linker to mpic++ as below:
# ---------------------------------------------------------------------
# compiler/linker settings
# specify flags and libraries needed for your compiler
CC = mpic++
CCFLAGS = -g -O # -Wunused
SHFLAGS = -fPIC
DEPFLAGS = -M
LINK = mpic++
LINKFLAGS = -g -O
LIB =
SIZE = size
ARCHIVE = ar
ARFLAGS = -rc
SHLIBFLAGS = -shared
Remove the MPI flags
Compile as for openmpi