Gromacs 2018.7 with GPU for LX (gcc)
Webpage
Version
2018.7
Build Environment
- Intel Parallel Studio XE 2017 update 8 (for Intel MPI)
- gcc 6.3.1 (devtoolset-6 Software Collections)
- cuda 9.1.85
- cmake 3.8.2
Files Required
- gromacs-2018.7.tar.gz
- (regressiontests-2018.7.tar.gz)
Build Procedure
#!/bin/sh
VERSION=2018.7
INSTALL_PREFIX=/local/apl/lx/gromacs2018.7-gnu-CUDABASEDIR=/home/users/${USER}/Software/Gromacs/${VERSION}/
GROMACS_TARBALL=${BASEDIR}/gromacs-${VERSION}.tar.gz
#REGRESSION_TARBALL=${BASEDIR}/regressiontests-${VERSION}.tar.gz
WORKDIR=/work/users/${USER}
#REGRESSION_PATH=${WORKDIR}/regressiontests-${VERSION}PARALLEL=12
#---------------------------------------------------------------------
umask 0022module purge
module load scl/devtoolset-6
module load intel_parallelstudio/2017update8
module load cuda/9.1
module load cmake/3.8.2cd ${WORKDIR}
if [ -d gromacs-${VERSION} ]; then
mv gromacs-${VERSION} gromacs_erase
rm -rf gromacs_erase &
fi#if [ -d regressiontests-${VERSION} ]; then
# mv regressiontests-${VERSION} regressiontests_erase
# rm -rf regressiontests_erase &
#fitar xzf ${GROMACS_TARBALL}
#tar xzf ${REGRESSION_TARBALL}
cd gromacs-${VERSION}# single precision, no MPI
mkdir rccs-s
cd rccs-s
cmake .. \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DGMX_MPI=OFF \
-DGMX_GPU=ON \
-DGMX_DOUBLE=OFF \
-DGMX_THREAD_MPI=ON \
-DGMX_BUILD_OWN_FFTW=ON \
-DREGRESSIONTEST_DOWNLOAD=OFF
#-DREGRESSIONTEST_PATH=${REGRESSION_PATH}
make -j${PARALLEL} && make install
cd ..# compiler setting for MPI versions
export CC=mpicc
export CXX=mpicxx
export F77=mpif90
export F90=mpif90
export FC=mpif90# single precision, with MPI
mkdir rccs-mpi-s
cd rccs-mpi-s
cmake .. \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DGMX_MPI=ON \
-DGMX_GPU=ON \
-DGMX_DOUBLE=OFF \
-DGMX_THREAD_MPI=OFF \
-DGMX_BUILD_OWN_FFTW=ON \
-DREGRESSIONTEST_DOWNLOAD=OFF
#-DREGRESSIONTEST_PATH=${REGRESSION_PATH}
make -j${PARALLEL} && make install
cd ..
Regression Tests
12CPU + 1GPU, MPI version only.
#!/bin/sh
#PBS -l select=ncpus=12:mpiprocs=12:ompthreads=1:jobtype=gpu:ngpus=1
#PBS -l walltime=00:30:00if [ -d "${PBS_O_WORKDIR}" ]; then
cd ${PBS_O_WORKDIR}
fimodule purge
module load intel_parallelstudio/2017update8
module load scl/devtoolset-6
module load cuda/9.1GMXBASE=/local/apl/lx/gromacs2018.7-gnu-CUDA
REGRESSIONS=/home/users/qf7/Software/Gromacs/2018.7/regressiontests-2018.7
MPIRUN=`which mpirun`cd $REGRESSIONS
. ${GMXBASE}/bin/GMXRC.bashPARALLEL="-np 12"
./gmxtest.pl ${PARALLEL} \
-ntomp 1 \
-mpirun ${MPIRUN} \
all