Difference between revisions of "Benchmarking: LAMMPS"
Jump to navigation
Jump to search
(Created page with "== 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 exi...") |
|||
| Line 2: | Line 2: | ||
| − | Unpack the tar file | + | # Unpack the tar file |
| − | Navigate into src folder | + | # Navigate into src folder |
| − | Navigate into MAKE folder | + | # Navigate into MAKE folder |
| − | Edit Makefile.openmpi | + | # Edit Makefile.openmpi |
Remove the flags for FFTW libaray, save and exit | Remove the flags for FFTW libaray, save and exit | ||
Revision as of 15:43, 3 October 2012
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