Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the GROMACS installation package directory.
cd /path/to/GROMACS
- Decompress the GROMACS installation package.
tar -xvf gromacs-2019.3.tar.gz
- Go to the directory generated after the decompression and create a build directory.
cd gromacs-2019.3 mkdir build cd build
- Perform the configuration.
FLAGS="-mcpu=tsv110"; CFLAGS=$FLAGS CXXFLAGS=$FLAGS LDFLAGS="-lflang" CC=mpicc CXX=mpicxx \ /path/to/CMAKE/bin/cmake \ -DCMAKE_INSTALL_PREFIX=/path/to/GROMACS/ \ -DBUILD_SHARED_LIBS=on \ -DBUILD_TESTING=on \ -DREGRESSIONTEST_DOWNLOAD=off \ -DGMX_BUILD_OWN_FFTW=off \ -DGMX_SIMD=ARM_NEON_ASIMD \ -DGMX_DOUBLE=off \ -DGMX_EXTERNAL_BLAS=on \ -DGMX_EXTERNAL_LAPACK=on \ -DGMX_FFT_LIBRARY=fftw3 \ -DGMX_BLAS_USER=/path/to/OPENBLAS/lib/libopenblas.a \ -DGMX_LAPACK_USER=/path/to/OPENBLAS/lib/libopenblas.a \ -DFFTWF_LIBRARY=/path/to/FFTW/lib/libfftw3f.so \ -DFFTWF_INCLUDE_DIR=/path/to/FFTW/include \ -DGMX_GPU=off \ -DGMX_MPI=on \ -DGMX_OPENMP=on \ -DGMX_X11=off \ ../
- Perform the compilation and installation.
make -j40 V=1 make -j40 install
- Check whether an executable file is generated.
ll /path/to/GROMACS/bin/gmx_mpi
- Set the environment variables.
export PATH=/path/to/GROMACS/bin:$PATH
Parent topic: GROMACS 2019.3 Porting Guide (openEuler 21.03)