services:cluster:gpunodes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| services:cluster:gpunodes [2015/06/18 12:48] – [GROMACS example using GPU acceleration] dreger | services:cluster:gpunodes [2015/06/18 13:02] (current) – dreger | ||
|---|---|---|---|
| Line 131: | Line 131: | ||
| </ | </ | ||
| + | So in this case the calculation runs about three times faster with two GPU cards. | ||
| + | |||
| + | ===== Example batch file ===== | ||
| + | |||
| + | A job script for the example given above could look like: | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | |||
| + | #SBATCH --mail-user=dreger@physik.fu-berlin.de | ||
| + | #SBATCH --mail-type=end | ||
| + | |||
| + | #SBATCH --output=job%j.out | ||
| + | #SBATCH --error=job%j.err | ||
| + | #SBATCH --ntasks=8 | ||
| + | #SBATCH --mem-per-cpu=1024 | ||
| + | #SBATCH --time=01: | ||
| + | #SBATCH --gres=gpu: | ||
| + | #SBATCH --nodes=1 | ||
| + | #SBATCH --partition=gpu-main | ||
| + | |||
| + | module load gromacs/ | ||
| + | |||
| + | TAG=" | ||
| + | |||
| + | grompp -f run.mdp -c waterbox.gro -p topol.top -o output-$TAG | ||
| + | mdrun -nt ${SLURM_CPUS_ON_NODE} -testverlet -v -deffnm output-$TAG | ||
| + | </ | ||
| + | |||
| + | Please make sure you change the email if you use this for your own tests ;) | ||
services/cluster/gpunodes.1434631693.txt.gz · Last modified: 2015/06/18 12:48 by dreger
