|2016.5||GROMACS 2016.5 (plumed)|
GROMACS is a software used to perform molecular dynamics, i.e. simulate the Newtonian equations of motion for systems with hundreds to millions of particles.
Modern installations on Triolith (from 5.x and up), uses single precision builds by default and only carry a suffix denoting precision for double precision builds. All modern Gromacs version on triolith are built MPI-parallel, version 5.1.2 and later have PLUMED metadynamics support built in.
Older Gromacs installations may carry these suffixes:
_s = Single precision version _d = Double precision version _mpi_s = MPI parallel version, single precision _mpi_d = MPI parallel version, double precision
Load the gromacs module corresponding to the version you want to use, e.g
module load gromacs/5.1.2
Then launch the desired binary. For MPI binaries, use “mpprun”, e.g
mpprun /path/to/gmx_mpi mdrun ...
The following example batch script uses the Gromacs ADH (cubic) benchmark as an example and as such leaves out all steps before running the Gromacs preprocessor. The benchmark is available at ftp://ftp.gromacs.org/pub/benchmarks/ADH_bench_systems.tar.gz, and assumes that the benchmark is unpacked and the job is submitted in that unpacked directory.
#!/bin/bash #SBATCH -t 08:00:00 #SBATCH -n 64 #SBATCH -A <Your_SNIC_project_ID> #SBATCH --exclusive module load gromacs/5.1.4 # Only use one process for the Gromacs pre-processing. Keep a log of the # process to help debugging in case needed. This step is actually best performed # separately so that a valid .tpr file is available before the trajectory # run. It is shown here for completeness. mpprun -n 1 $(type -p gmx_mpi) grompp \ -f pme_verlet.mdp \ -c conf.gro \ -p topol.top \ -o mdrun.tpr > my_adh_cubic_run.grompp.log 2>&1 # Now use all processors allocated for the trajectory generation. mpprun $(type -p gmx_mpi) mdrun \ -s mdrun.tpr \ -deffnm my_adh_cubic_run \ -pin on
Please note that you will need to edit the SBATCH section to match your specific needs before submitting.