Skip to content

Instantly share code, notes, and snippets.

@DaisukeMiyamoto
Last active October 21, 2020 19:07
Show Gist options
  • Save DaisukeMiyamoto/c619661f21993ab3f95f9c2bf68c8e6f to your computer and use it in GitHub Desktop.
Save DaisukeMiyamoto/c619661f21993ab3f95f9c2bf68c8e6f to your computer and use it in GitHub Desktop.
benchmark GROMACS with NVIDIA GPU Cloud (NGC) Docker container
#!/bin/bash
wget https://ftp.gromacs.org/pub/benchmarks/ADH_bench_systems.tar.gz
tar xvzf ADH_bench_systems.tar.gz
docker run -ti --runtime nvidia -v $(pwd)/ADH/adh_cubic:/benchmark --workdir /benchmark nvcr.io/hpc/gromacs:2020.2 sh -c "gmx grompp -f pme_verlet.mdp"
time docker run -ti --runtime nvidia -v $(pwd)/ADH/adh_cubic:/benchmark --workdir /benchmark nvcr.io/hpc/gromacs:2020.2 sh -c "gmx mdrun -v -nsteps 100000 -resetstep 90000 -noconfout -ntmpi 4 -ntomp 10 -nb gpu -bonded gpu -pme gpu -npme 1 -nstlist 400 -s topol.tpr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment