GROMACS
A versatile package to perform molecular dynamics.
GROMACS requires an environment module
In order to use GROMACS, you must first load the appropriate environment module:
module load gnu
GROMACS is a powerful and versatile molecular dynamics simulation package. It is capable of solving Newtonian Equations of Motion for extremely large systems.
GROMACS Versions on RCC Systems#
RCC currently supports two versions of GROMACS:
- GROMACS 2021: Available with the default GNU module (
module load gnu
). - GROMACS 2024: Available with GNU 13 and OpenMPI 4.1.6 (
module load gnu/13.2.0 openmpi/4.1.6
).
GROMACS uses different commands for serial and parallel jobs:
- gmx
is used for serial execution
- gmx_mpi
is used for parallel execution
Note that GROMACS 2024 is compiled only in parallel mode and must be run with the gmx_mpi
command.
Loading GROMACS Modules#
GROMACS 2021#
Or, if you want to use the MVAPICH version:
GROMACS 2024#
Running Serial GROMACS Jobs on HPC#
To run GROMACS in serial, load the GNU module and use the gmx
command:
Running Parallel GROMACS Jobs on HPC#
To run parallel GROMACS jobs, load the appropriate modules and use gmx or gmx_mpi depending on the version:
- GROMACS 2021: Use
gmx
- GROMACS 2024: Use
gmx_mpi
For example, the following SLURM script runs a GROMACS 2024 job in parallel using 16 cores:
To use GROMACS 2021 in parallel:
Save the appropriate script to a .sh
file and submit it using sbatch
.