MOLECULAR DYNAMICS PERFORMANCE GUIDE - Digital Research Alliance of CANADA

BENCHMARK DETAILS

ID=100

  • Dataset: 6n4o
  • Software: GROMACS.cuda (gromacs/2021.4-gofbc-2020a-avx2)
  • Resource: 1 tasks, 8 cores, nodes, 1 GPUs, with NVLink
  • CPU: EPYC 7413 (Milan), 2.65 GHz
  • GPU: NVIDIA-A100-SXM4-40GB, 12 cores/GPU
  • Simulation speed: 78.497 ns/day
  • Efficiency: 91.7 %
  • Site: Narval
  • Date: Dec. 22, 2021, 4:43 p.m.
  • Submission script:

    #!/bin/bash
    #SBATCH --mem-per-cpu=2000 --time=1:0:0 --mem-bind=verbose,none -c8 --ntasks=1 --gpus-per-node=1 --nodes=1 -A def-svassili

    td=$SLURM_TMPDIR
    wd=$SLURM_SUBMIT_DIR
    export OMP_NUM_THREADS="${SLURM_CPUS_PER_TASK:-1}"
    module load StdEnv/2020 gcc/9.3.0 cuda/11.4 openmpi/4.0.3 gromacs/2021.4
    cp topol.tpr $td && cd $td
    gmx mdrun -ntomp $OMP_NUM_THREADS -nb gpu -pme gpu -update gpu -bonded cpu -s topol.tpr -cpi state.cpi

    grep Brand md.log
    grep -A1 "Number of GPUs detected:" md.log | tail -n1
    grep "The number of OpenMP threads" md.log
    grep Performance: md.log
    cp md.log $wd

  • Notes:

    GROMACS does not report CPU time, only WALL time!
    "Core t" is actually (wall time) * (N cores).
    For this reason, benchmarking with short runs is very inaccurate.
    Increased number of steps to 400,000 and switched to using localscratch.

    Inconsistency is still there though:
    56.075, 75.912, 49.194, 73.910, 76.124, 78.497, 76.684 , 61.601

  • Simulation input file:

    title = benchmark
    ; Run parameters
    integrator = md
    nsteps = 400000
    dt = 0.001
    ; Output control
    nstxout = 0
    nstvout = 0
    nstfout = 0
    nstenergy = 10000
    nstlog = 10000
    nstxout-compressed = 50000
    compressed-x-grps = System
    ; Bond parameters
    continuation = yes
    constraint_algorithm = lincs
    constraints = h-bonds

    ; Neighborsearching
    cutoff-scheme = Verlet
    ns_type = grid
    nstlist = 10
    rcoulomb = 0.8
    rvdw = 0.8
    DispCorr = Ener ; anaytic VDW correction
    ; Electrostatics
    coulombtype = PME
    pme_order = 4
    fourier-nx = 144
    fourier-ny = 144
    fourier-nz = 144
    ; Temperature coupling is on
    tcoupl = V-rescale
    tc-grps = system
    tau_t = 0.1
    ref_t = 300
    ; Pressure coupling is on
    pcoupl = Parrinello-Rahman
    pcoupltype = isotropic
    tau_p = 2.0
    ref_p = 1.0
    compressibility = 4.5e-5
    ; Periodic boundary conditions
    pbc = xyz
    ; Velocity generation
    gen_vel = no