Translations:Running jobs/86/en

From Alliance Doc
Jump to navigation Jump to search

All GPU resources on Cedar have four GPUs per node, Graham GPU nodes have two GPUs per node. The following example requests all the GPUs on one node.

File : simple_gpu_job.sh

#!/bin/bash
#SBATCH --account=def-someuser
#SBATCH --gres=gpu:4              # request GPU "generic resource", 4 on Cedar, 2 on Graham
#SBATCH --mem=4000M               # memory per node
#SBATCH --time=0-05:00            # time (DD-HH:MM)
nvidia-smi