Gromacs 2020.7 with GPU support (gcc)
ウェブページ
バージョン
2020.7
ビルド環境
- Intel Parallel Studio XE 2018 update 4 (MPI)
- GCC 8.3.1 (Software Collections devtoolset-8)
- CUDA 10.1
- cmake 3.16.3
ビルドに必要なファイル
- gromacs-2020.7.tar.gz
- regressiontests-2020.7.tar.gz
- tests_CMakelists.patch
--- tests/CMakeLists.txt.org 2019-10-07 19:24:40.524863424 +0900
+++ tests/CMakeLists.txt 2019-10-07 19:25:13.736715189 +0900
@@ -125,6 +125,11 @@
endif()
#We should use MPIEXEC_NUMPROC_FLAG but gmxtest.pl doesn't let us pass it
endif()
+ if(GMX_THREAD_MPI)
+ set(GMX_TEST_NUMBER_PROCS 8 CACHE STRING "Number of processors used for testing")
+ mark_as_advanced(GMX_TEST_NUMBER_PROCS)
+ list(APPEND ARGS -nt ${GMX_TEST_NUMBER_PROCS})
+ endif()
if(GMX_BINARY_SUFFIX)
list(APPEND ARGS -suffix ${GMX_BINARY_SUFFIX})
endif()
(2019.4 時の work around を流用。パッチ未適用状態でのテストは実施していない)
ビルド手順
#!/bin/sh
VERSION=2020.7
INSTALL_PREFIX=/local/apl/lx/gromacs${VERSION}-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}
PATCH_TEST=${BASEDIR}/tests_CMakelists.patch
PARALLEL=12
#---------------------------------------------------------------------
umask 0022module purge
module load scl/devtoolset-8
module load intel_parallelstudio/2018update4
module load cuda/10.1
module load cmake/3.16.3cd ${WORKDIR}
if [ -d gromacs-${VERSION} ]; then
mv gromacs-${VERSION} gromacs_erase
rm -rf gromacs_erase &
fiif [ -d regressiontests-${VERSION} ]; then
mv regressiontests-${VERSION} regressiontests_erase
rm -rf regressiontests_erase &
fitar xzf ${GROMACS_TARBALL}
tar xzf ${REGRESSION_TARBALL}
cd gromacs-${VERSION}
patch -p0 < ${PATCH_TEST}# 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 check && 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 check && make install
cd ..
メモ
- ccgpup でビルドとテストを実行。手順は 2020.6 の際と全く同じ。