MOLECULAR DYNAMICS PERFORMANCE GUIDE - Digital Research Alliance of CANADA

SOFTWARE DETAILS

ID=15, PMEMD.cuda

  • Module/Version: amber/20.12-20.15
  • Toolchain/Version: gofbc/2020.1.403.114
  • CPU instruction set: avx512
  • Example job submission script:

    #!/bin/bash
    #SBATCH -c1 --gpus-per-node=1 --mem-per-cpu=2000 --time=1:0:0

    module --force purge
    ml StdEnv/2020 gcc/9.3.0 cuda/11.4 openmpi/4.0.3 amber/20.12-20.15
    pmemd.cuda -O -i pmemd.in -o production.log -p prmtop.parm7 -c restart.rst7

  • Benchmark submission script:
      

    #!/bin/bash
    #SBATCH -c1 --gpus-per-node=1
    #SBATCH --mem-per-cpu=2000 --time=1:0:0
    # Usage: sbatch submit.cuda.sh]
    INPFILE=pmemd_prod.in
    STEPS=20000
    # End of user input
    TMPFILE=tf_${SLURM_CPUS_PER_TASK}
    LOGFILE=production_${SLURM_CPUS_PER_TASK}.log
    module --force purge
    ml StdEnv/2020 gcc/9.3.0 cuda/11.4 openmpi/4.0.3 amber/20.12-20.15
    # Print resource info
    echo ${SLURM_NODELIST} running on ${SLURM_CPUS_PER_TASK} cores
    cat /proc/cpuinfo | grep "model name" | uniq
    # Run simulation three times
    pmemd.cuda -O -i $INPFILE -o $LOGFILE -p prmtop.parm7 -c restart.rst7
    grep "NonSetup CPU time" $LOGFILE > $TMPFILE
    pmemd.cuda -O -i $INPFILE -o $LOGFILE -p prmtop.parm7 -c restart.rst7
    grep "NonSetup CPU time" $LOGFILE >> $TMPFILE
    pmemd.cuda -O -i $INPFILE -o $LOGFILE -p prmtop.parm7 -c restart.rst7
    grep "NonSetup CPU time" $LOGFILE >> $TMPFILE
    # Print average of three runs.
    echo -n "ns/day:"
    awk -v steps=$STEPS '{total += $5; count++ } END { print count*3.6*2.4*steps*0.01/total}' $TMPFILE
    #rm $TMPFILE $LOGFILE mdinfo mdcrd restrt