GROMACS on dedicated servers
GROMACS is among the fastest molecular dynamics engines on CPUs, with hand-tuned SIMD kernels and domain decomposition across cores. A large dedicated machine gives it many cores with nothing else competing.
How do I build GROMACS for these processors?
From source with CMake, choosing the SIMD level for the processor. The build picks a sensible default for the machine it runs on; on AMD Zen 4 and Zen 5 and on recent Intel Xeon models, compare an AVX_512 build with AVX2_256 on your own system, since the faster choice depends on the processor and the simulation.
apt install build-essential cmake libfftw3-dev libopenblas-dev tar -xzf gromacs-2025.x.tar.gz && cd gromacs-2025.x && mkdir build && cd build cmake .. -DGMX_SIMD=AVX_512 -DGMX_FFT_LIBRARY=fftw3 -DGMX_BUILD_OWN_FFTW=OFF -DCMAKE_INSTALL_PREFIX=/opt/gromacs-avx512 make -j"$(nproc)" && make check && make install
Load it with source /opt/gromacs-avx512/bin/GMXRC. The default thread-MPI build runs on one machine without an MPI library, which is what a single large server needs.
How should ranks and threads be split?
GROMACS divides the system into domains, one per rank, and each rank uses OpenMP threads. On large machines, several ranks with a few threads each usually beat one rank with many threads. Start with ranks of 4 to 8 threads, and let mdrun place them with pinning on.
gmx mdrun -deffnm prod -ntmpi 16 -ntomp 6 -pin on -npme 4 -nb cpu -bonded cpu
On a 96-core machine, 16 ranks of 6 threads use every core. Leave hyper-threads unused unless a test shows a gain; GROMACS gets most of its speed from one thread per core.
What are PME ranks?
Ranks dedicated to the long-range electrostatics part of the calculation. Separating them reduces communication between all ranks for the PME grid. -npme sets how many; about a quarter of ranks is a common start, and gmx tune_pme searches for the best split on your system. The log reports the load balance between particle-particle and PME work at the end of each run.
How do I benchmark?
With a short run of your real system, resetting counters halfway so start-up does not distort the result, then reading ns/day from the end of the log.
gmx mdrun -deffnm bench -nsteps 20000 -resethway -noconfout -ntmpi 12 -ntomp 8 -pin on grep -A2 "Performance:" bench.log
| System size | Cores that scale well on one machine |
|---|---|
| 20,000 to 100,000 atoms | 16 to 48 |
| 100,000 to 500,000 atoms | 48 to 128 |
| Over 500,000 atoms | 128 to 192 and beyond |
Is it better to run several simulations at once?
Often, yes. Replica exchange, free energy windows and independent repeats are naturally parallel. gmx mdrun -multidir runs several simulations in one launch, each on its own set of cores, which keeps every core busy with efficient domain sizes. A 192-core machine running eight simulations of 24 cores each typically produces more total ns/day than one simulation on all 192.
What about GPUs and multi-node runs?
We do not rent GPUs, so runs here use the CPU kernels, which remain strong on many-core processors. Running one simulation across several servers needs a low-latency interconnect that public ports cannot match, so choose the single machine with the cores you need: up to 384 in ENTERPRISE-a9 2026.
Which machine fits?
| Workload | Machine | Cores |
|---|---|---|
| Teaching and small systems | ESSENTIAL-L | 16 |
| Typical membrane or protein systems | ESSENTIAL-XL | 48 |
| Ensembles and large systems | ENTERPRISE-a6 2026 | 96 |
| Largest single machine | ENTERPRISE-a9 2026 | 384 |
ENTERPRISE-a6 2026 provides 96 Zen 5 cores for $694.20 a month. Write trajectories to NVMe and move them to a Storage server for analysis and archiving. The NAMD molecular dynamics servers page covers the other common engine, and Grid and batch computing covers spreading independent jobs over several machines.
Machines for GROMACS
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-XL | AMD EPYC TURIN 9455 | 48 | 128 GB | 2x 1.92 TB SSD NVMe | 1 Gbps unmetered | $212.40 |
| BUSINESS-5 2026 | INTEL Xeon 6527P | 24 | 128 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $406.20 |
| ENTERPRISE-a6 2026 | AMD EPYC TURIN 9655 | 96 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $694.20 |
| ENTERPRISE-a8 2026 | AMD EPYC TURIN 9965 | 192 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $849.60 |
| ENTERPRISE-a9 2026 | 2x AMD EPYC TURIN 9965 | 384 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $1,628.40 |
Pick cores for your system size, and run ensembles side by side on large machines.
Related pages
NAMD molecular dynamics servers
Run NAMD simulations on many-core CPUs: multicore builds, thread placement, benchmark systems, ns/day, and choosing between more cores and higher clocks.
Read moreGrid and batch computing
Spread independent jobs over several rented machines: Slurm or HTCondor over WireGuard, job arrays, shared storage on a Storage server, and cost per core.
Read moreAMD EPYC, Ryzen and Xeon generations
Which processor family sits in each of our machines, what each generation changed, and how to read a model name before you order.
Read moreQuestions and answers
Which SIMD option should I build GROMACS with?
Let the build detect the processor, then compare AVX_512 and AVX2_256 builds on your own system and keep the faster one.
How should I split GROMACS ranks and threads?
Several thread-MPI ranks of 4 to 8 OpenMP threads each, one thread per physical core, with -pin on.
What does -npme do in GROMACS?
It dedicates ranks to long-range PME electrostatics. About a quarter of ranks is a common start; gmx tune_pme finds the best value.
Can GROMACS run well without a GPU?
Yes. Its CPU kernels are highly optimised, and many-core processors deliver strong performance for most systems.
How do I run several GROMACS simulations on one server?
Use gmx mdrun -multidir so each simulation gets its own set of cores within one launch.