LAMMPS 22Aug18 (stable release) for LX
Webpage
http://lammps.sandia.gov/

Version
22Aug18

Build EnvironmentIntel Parallel Studio XE 2017 update 4Intel Compiler 17.0.4.196
Intel MKL 2017 update 3Intel MPI 2017.0.3
CUDA 8.0.61/9.1.85
libjpeg-turbo 1.2.90

Files Required
lammps-stable_22Aug18.tar.gz (16Mar18)
lammps-testing-master.zip (Downloaded on Oct. 25, 2018)(Some of files are obtained in the following script)

Build Procedure#!/bin/sh
NAME=lammps-stable_22Aug2018
VERSION=22Aug18
INSTALL_PREFIX=/local/apl/lx/lammps22Aug18
BASEDIR=/home/users/${USER}LAMMPS_TARBALL=${BASEDIR}/${NAME}.tar.gz
PARALLEL=12#-- libs
LATTE_VER=1.2.1
VMD_PLUGIN_INC=`echo /local/apl/lx/vmd193/lib/plugins/include | sed -e 's/\//\\\\\//g'` # molfile
VORO_VER=0.4.6 # voronoi
VORO=http://math.lbl.gov/voro++/download/dir/voro++-${VORO_VER}.tar.gz#------ funcs -----function buildgpu() {## gpu# assume you are at lammps top directory( cd lib/gpu && \sed -e "/^CUDA_ARCH/s/-arch=sm.*/-arch=${LAMMPS_CUDA_ARCH}/" \-e "/^CUDA_LIB/s/$/ -L\$(CUDA_HOME)\/lib64\/stubs/" \-e "s/mpicxx/mpiicpc/" \Makefile.linux > Makefile.rccs && \make -f Makefile.rccs clean && \make -f Makefile.rccs -j ${PARALLEL} && \sed -i -e "/^gpu_SYSPATH/s/$/ -L\$(CUDA_HOME)\/lib64\/stubs/" \Makefile.lammps &&cd ../../ )}#-----------------------------------------------------------------umask 0022

module purge
module load intel_parallelstudio/2017update4
module load cuda/9.1
cd ${INSTALL_PREFIX}
if [ -d ${NAME} ]; thenmv ${NAME} lammps_erase
rm -rf lammps_erase &fitar zxf ${LAMMPS_TARBALL}
mv ${NAME}/* .
rm -rf ${NAME}/.git*
rmdir ${NAME}# setup makefiles, libraries, and external resources## mainmkdir -p src/MAKE/MINE
sed -e "/intel_cpu_intelmpi/s/.*/# rccs = USER-INTEL package, Intel MPI, MKL FFT/" src/MAKE/OPTIONS/Makefile.intel_cpu >src/MAKE/MINE/Makefile.rccs## atc( cd lib/atc && \sed -e s/icc/mpiicc/ -e s/lammps.installed/lammps.empty/ Makefile.icc > Makefile.rccs && \make -f Makefile.rccs -j ${PARALLEL} && \cd ../../ )## awpmd( cd lib/awpmd && \sed -e s/linalg/empty/ -e s/mpicxx/mpiicc/ Makefile.mpi > Makefile.rccs && \make -f Makefile.rccs -j ${PARALLEL} && \cd ../../ )## colvars( cd lib/colvars && \sed -e s/mpicxx/mpiicc/ -e s/-funroll-loops/-unroll/ Makefile.mpi > Makefile.rccs && \make -f Makefile.rccs -j ${PARALLEL} && \cd ../../ )## gpuexport CUDA_HOME=/local/apl/lx/cuda-9.1
LAMMPS_CUDA_ARCH="sm_70" # V100
buildgpu## h5md( cd lib/h5md && \make -f Makefile.mpi -j ${PARALLEL} && \cd ../../ )### latte (make jobserver not available?)( cd lib/latte && \curl -L -o "LATTE.tar.gz" https://github.com/lanl/LATTE/archive/v${LATTE_VER}.tar.gz && \tar zxf LATTE.tar.gz && \cd LATTE-${LATTE_VER} && \sed -i -e "s/^FC =.*/FC = ifort/" -e "s/fopenmp/qopenmp -fPIC/" -e "s/^LIB =.*/LIB = -mkl=parallel/" makefile.CHOICES && \make && \cd ../ && \ln -s LATTE-${LATTE_VER}/src includelink && \ln -s LATTE-${LATTE_VER} liblink && \ln -s LATTE-${LATTE_VER}/src/latte_c_bind.o filelink.o && \echo "latte_SYSINC =" > Makefile.lammps && \echo "latte_SYSLIB = -qopenmp ../../lib/latte/filelink.o -llatte -lifport" >> Makefile.lammps && \echo -n "latte_SYSPATH = -qopenmp" >> Makefile.lammps && \cd ../../ )## meam( cd lib/meam && \sed -e s/mpifort/mpiifort/ -e s/mpicc/mpiicc/ -e s/mpicxx/mpiicpc/ Makefile.mpi > Makefile.rccs && \make -f Makefile.rccs -j ${PARALLEL} && \cd ../../ )### molfile( cd lib/molfile && \sed -i -e "s/molfile_SYSINC.*/molfile_SYSINC =-I$VMD_PLUGIN_INC/" Makefile.lammps && \cd ../../ )## poems( cd lib/poems && \make -f Makefile.icc -j ${PARALLEL} && \cd ../../ )## reax( cd lib/reax && \make -f Makefile.ifort -j ${PARALLEL} && \cd ../../ )## voronoi( cd lib/voronoi && \wget ${VORO} && \tar zxf voro++-${VORO_VER}.tar.gz && \cd voro++-${VORO_VER} && \sed -i -e "s/^CXX=.*/CXX=icpc/" -e "s/^CFLAGS=.*/CFLAGS=-Wall -O3 -fPIC/" config.mk && \make -j ${PARALLEL} && \cd ../ && \ln -s voro++-${VORO_VER}/src includelink && \ln -s voro++-${VORO_VER}/src liblink && \cd ../../ )#---# make volta version
cd srcmake yes-all no-ext
make no-KOKKOS \yes-GPU \yes-LATTE \yes-VORONOI \yes-USER-H5MD \yes-USER-MOLFILE \yes-USER-NETCDF
make -j ${PARALLEL} rccs
make -j ${PARALLEL} rccs mode=shlib
mv lmp_rccs lmp_rccs_volta
mv liblammps_rccs.so liblammps_rccs_volta.so
cd ../#---# make pascal version
module switch cuda/8.0
export CUDA_HOME=/local/apl/lx/cuda-8.0
LAMMPS_CUDA_ARCH="sm_60" # P100
buildgpu
cd srcmake no-GPU
make yes-GPU
make -j ${PARALLEL} rccs
make -j ${PARALLEL} rccs mode=shlib
mv lmp_rccs lmp_rccs_gpu
mv liblammps_rccs.so liblammps_rccs_gpu.so
cd ../#---# make default non-gpu version (just for easier use)
module unload cuda
cd srcmake no-GPU
make -j ${PARALLEL} rccs
make -j ${PARALLEL} rccs mode=shlib
cd ../

Package List
ASPHERE, BODY, CLASS2, COLLOID, COMPRESS, CORESHELL, DIPOLE, (GPU; only for GPU version), GRANULAR, KSPACE,LATTE, MANYBODY, MC, MEAM, MISC, MOLECULE, MPIIO, OPT, PERI, POEMS, PYTHON, QEQ, REAX, REPLICA, RIGID, SHOCK,
SNAP, SPIN, SRD, VORONOIUSER-ATC, USER-AWPMD, USER-BOCS, USER-CGDNA, USER-CGSDK, USER-COLVARS, USER-DIFFRACTION, USER-DPD,
USER-DRUDE, USER-EFF, USER-FEP, USER-H5MD, USER-INTEL, USER-LB, USER-MANIFOLD, USER-MEAMC, USER-MESO,
USER-MGPT, USER-MISC, USER-MOFFF, USER-MOLFILE, USER-NETCDF, USER-OMP, USER-PHONON, USER-QTB, USERREAXC, USER-SMTBQ, USER-SPH, USER-TALLY, USER-UEF

Test(Environment settings are done elsewhere; Volta version is not yet tested)#!/bin/sh
VERSION=22Aug18
WORKDIR=/home/users/${USER}/ramdisk
LAMMPSDIR=/local/apl/lx/lammps${VERSION}LAMMPSTESTS=/home/users/${USER}/lammps-testing-master.20181025.zip
LAMMPSDIR_EXC=`echo $LAMMPSDIR | sed -e 's/\//\\\\\//g'`export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LAMMPSDIR}/src"
export PYTHONPATH="${PYTHONPATH}:${LAMMPSDIR}/python"
JOBNAME=basic# classification
NOAVAIL="mscg kim USER/quip USER/misc/i-pi"
NODE1="gcmc"
NODES3="tad neb USER/dpd/dpdrx-shardlow"
STALL="USER/eff/ECP/Si2H6 USER/eff/CH4"
STALL_INTEL="balance"
UNKNOWN="USER/misc/pimd USER/misc/grem USER/atc COUPLE ASPHERE/tri ASPHERE/line"
TOOLONG="USER/misc/imd USER/lb"
EXCLUDES="${NOAVAIL} ${NODE1} ${NODES3} ${STALL} ${STALL_INTEL} ${UNKNOWN} ${TOOLONG}"
cd $WORKDIR
if [ -d lammps-testing-master ]; thenmv lammps-testing-master lammps-testing-master_erase
rm -rf lammps-testing-master_erase &fiunzip ${LAMMPSTESTS}
cd lammps-testing-master# mod and prep some files
sed -i -e "s/^read_data.*/read_data
sed -i -e "s/^ pair_coeff.*/ pair_coeff${LAMMPSDIR_EXC}\/bench\/data.rhodo/" tests/examples/accelerate/in.rhodo* * ${LAMMPSDIR_EXC}\/potentials\/Cu_mishin1.eam.alloy Cu/" tests/examples/USER/misc/ti/in.ti_spring

cp ${LAMMPSDIR}/potentials/{CC.KC,CH.airebo} tests/examples/USER/misc/kolmogorov-crespi# basic tests
NPROCS=4
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-exclude ${EXCLUDES}# gcmc
NPROCS=1
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only ${NODE1}# tad
NPROCS=3
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN} -partition 3x1" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only tad# neb(sivac)
NPROCS=3
TESTDIR=tests/examples/neb
mv ${TESTDIR}/in.neb.hop1 ${TESTDIR}/In.neb.hop1
mv ${TESTDIR}/in.neb.hop2 ${TESTDIR}/In.neb.hop2
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN} -partition 3x1" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only neb
mv ${TESTDIR}/In.neb.hop1 ${TESTDIR}/in.neb.hop1
mv ${TESTDIR}/In.neb.hop2 ${TESTDIR}/in.neb.hop2# neb(hop1,hop2)
NPROCS=4TESTDIR=tests/examples/neb
mv ${TESTDIR}/in.neb.sivac ${TESTDIR}/In.neb.sivac
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN} -partition 4x1" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only neb
mv ${TESTDIR}/In.neb.sivac ${TESTDIR}/in.neb.sivac# dpdrx-shardlow
NPROCS=3
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN} -partition 3x1" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only USER/dpd/dpdrx-shardlow# ECP(Si2H6)
NPROCS=4TESTDIR=tests/examples/USER/eff/ECP/Si2H6
mv ${TESTDIR}/in.Si2H6.ang ${TESTDIR}/In.Si2H6.ang
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only USER/eff/ECP/Si2H6
mv ${TESTDIR}/In.Si2H6.ang ${TESTDIR}/in.Si2H6.ang# ECP(CH4)
NPROCS=4TESTDIR=tests/examples/USER/eff/CH4
mv ${TESTDIR}/in.ch4_ionized.dynamics ${TESTDIR}/In.ch4_ionized.dynamics
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only USER/eff/CH4
mv ${TESTDIR}/In.ch4_ionized.dynamics ${TESTDIR}/in.ch4_ionized.dynamics

# USER/lb
NPROCS=4TESTDIR1=tests/examples/USER/lb/polymer
mv ${TESTDIR1}/in.polymer_setgamma ${TESTDIR1}/In.polymer_setgamma
mv ${TESTDIR1}/in.polymer_default_gamma ${TESTDIR1}/In.polymer_default_gamma
TESTDIR2=tests/examples/USER/lb/fourspheres
mv ${TESTDIR2}/in.fourspheres_set_gamma ${TESTDIR2}/In.fourspheres_set_gamma
mv ${TESTDIR2}/in.fourspheres_default_gamma ${TESTDIR2}/In.fourspheres_default_gamma
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only USER/lb
mv ${TESTDIR1}/In.polymer_setgamma ${TESTDIR1}/in.polymer_setgamma
mv ${TESTDIR1}/In.polymer_default_gamma ${TESTDIR1}/in.polymer_default_gamma
mv ${TESTDIR2}/In.fourspheres_set_gamma ${TESTDIR2}/in.fourspheres_set_gamma
mv ${TESTDIR2}/In.fourspheres_default_gamma ${TESTDIR2}/in.fourspheres_default_gamma# balance
NPROCS=4TESTDIR=tests/examples/balance
mv ${TESTDIR}/in.balance.bond.fast ${TESTDIR}/In.balance.bond.fast
mv ${TESTDIR}/in.balance.bond.slow ${TESTDIR}/In.balance.bond.slow
mv ${TESTDIR}/in.balance.neigh.rcb ${TESTDIR}/In.balance.neigh.rcb
mv ${TESTDIR}/in.balance ${TESTDIR}/In.balance
python \lammps_testing/regression.py \${JOBNAME} \"mpirun -np ${NPROCS} ${LAMMPSBIN}" \${WORKDIR}/lammps-testing-master/tests/examples/ \-only balance
mv ${TESTDIR}/In.balance.bond.fast ${TESTDIR}/in.balance.bond.fast
mv ${TESTDIR}/In.balance.bond.slow ${TESTDIR}/in.balance.bond.slow
mv ${TESTDIR}/In.balance.neigh.rcb ${TESTDIR}/in.balance.neigh.rcb
mv ${TESTDIR}/In.balance ${TESTDIR}/in.balance

Test Results(The results are common for both of CPU and GPU versions.)
USER/eff/Li-dendritic: Missing files? Cannot run.
tad/tad: Error on data send/receive
neb/neb.sivac: problem on file name for comparison. Some numerical errors also exist.
neb/neb.hop1: problem on file name for comparison. Some numerical errors also exist.
neb/neb.hop2: problem on file name for comparison. Minor numerical errors.
dpd/dpdrx-shardlow: problem on file name for comparison. The 0th step seems to be ok, but 1st step (and later)
data are different from ref.
balance/balance.var.dynamics: minor numerical error.
balance/balance.kspace: numerical error.
balance/balance.clock.dynamic: minor numerical error.
comments on tests not even performed.
balance/balance.neigh.rcb: stalled (may work if built with GCC)
balance/balance.bond.slow: stalled (may work if built with GCC)
balance/balance.bond.fast: stalled (may work if built with GCC)
balance/balance: stalled (may work if built with GCC)
mscg kim USER/quip USER/misc/i-pi: package not installed
USER/eff/ECP/Si2H6/Si2H6.ang: stalled
USER/eff/CH4/ch4_ionized.dynamics: stalled
USER/misc/pimd USER/misc/grem USER/atc COUPLE ASPHERE/tri ASPHERE/line: missing files etc.
USER/misc/imd USER/lb: just too time consuming

Noticesmodule names (the contents are almost the same (except for CUDA setting))
CPU version: lammps/22Aug18/intel
GPU version: lammps/22Aug18/intel-CUDA

Files (exe, src, and others) locate under /local/apl/lx/lammps22Aug18 directory.
CPU version exe is /local/apl/lx/lammps22Aug18/src/lmp_rccs
GPU version exe is /local/apl/lx/lammps22Aug18/src/lmp_rccs_gpu
Vmd molfile plugins locate in /local/apl/lx/vmd193/lib/plugins/LINUXAMD64/molfile directory.
Sample input and jobscript can be found at /local/apl/lx/lammps22Aug18/samples directory.