GROMACS 2020.4 molecular dynamics preparation and mdrun
harbor run -t accelerate-bench/gromacs-molecular-dynamicsharbor download accelerate-bench/gromacs-molecular-dynamicsMake GROMACS 2020.4 CPU simulations built from /app/gromacs run faster without changing their physical results.
What you may change. Anything in /app/gromacs, including the build configuration. /app/gromacs/CMakeLists.txt must exist. The final verifier builds from scratch, out of source, with CMake in double precision, CPU only, with FFTW3, OpenMP and thread MPI, target gmx, -j4. The build must produce <build>/bin/gmx_d, where <build> is the verifier's build directory, and gmx_d must load the GROMACS libraries from that build, not the unmodified GROMACS preinstalled in /opt/gromacs. The build must finish within 7200 s and each mdrun within 900 s. Optional /app/gromacs/workflow.json accepts two keys: simd (None, SSE2, AVX2_256, or AUTO), passed to CMake as GMX_SIMD, and threads (1, 2, or 4), the OpenMP thread count for your runs. Any other key or value is rejected. Defaults:
{"simd": "None", "threads": 4}
The final verifier prepares each input with the unmodified grompp and runs gmx_d mdrun -ntmpi 1 -ntomp <threads> -pin off -nb cpu -pme cpu -reprod.
Correctness. Preserve particle counts, integration steps, time steps, interaction models, accuracy settings and output schedules. The public cases are upstream flexible water (2700 atoms) and argon (1000 atoms), each run for 1000 integration steps with the original PME interaction models and accuracy settings. Compared with the unmodified build on the same input, each value must be within its absolute tolerance plus the relative tolerance times the reference magnitude:
Do not skip simulation work, substitute precomputed results, read verifier files or alter verifier results.
Timing and score. Only the complete gmx_d mdrun process is timed. Build time is not scored. Each case runs three times for your build and three times for the unmodified build (twice each in the public tests), alternating order. The unmodified build always uses 4 threads. The verifier takes the median per case and sums over cases. If every check passes, the score is max(0, min(1, 1 - T / B)), where T and B are the summed mdrun wall times for your build and the unmodified build. A correct program that is no faster scores 0.
Public tests. python3 /app/submit_public.py sends the entire source tree to a separate container, which builds it and runs the two public cases. It returns correctness, your runtime, the unmodified runtime, the speedup, replay status and per-case results, or a failure reason with a diagnostic.
Submission. The final verifier takes the entire /app/gromacs directory, including any workflow.json, and rebuilds it without network access. Symlinks and special files are rejected, and the tree may hold at most 24000 entries, 180 MiB in total and 24 MiB per file. The final verifier runs the public cases and held-out inputs of the same kind.
The container has 4 CPUs and 6 GiB of memory.
You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.