How To: Accessing GPU Nodes

Overview 

 

GPU resources are available through the gpu, gpu_requeue, and investor slurm partitions. 

 

Accessing GPU Nodes Through the gpu Partition 

 

The gpu partition provides access to general GPU nodes and is available to all users. Jobs allocated on the gpu partition cannot be preempted by jobs from higher priority partitions. 

 

Interactive Session 
screen salloc -p gpu -c 1 --ntasks-per-node=8 -N 1 --mem=10G --gres=gpu:A100:1 --x11 -t 2:00:00 

 

Batch Job Submission 
#!/bin/bash 
#SBATCH -p gpu 
#SBATCH -c 1 
#SBATCH --ntasks-per-node=8 
#SBATCH -N 1 
#SBATCH --mem=10G 
#SBATCH --gres=gpu:A100:1 
#SBATCH --time=2:00:00 

 

Accessing GPU Nodes Through the gpu_requeue partition 

 

This partition includes both investors and general GPU resources. 

 

Interactive Session 
screen salloc -p gpu_requeue -c 1 --ntasks-per-node=8 -N 1 --mem=10G --gres=gpu:A100:1 --x11 -t 2:00:00 

 

Batch Job Submission 
#!/bin/bash 
#SBATCH -p gpu_requeue 
#SBATCH -c 1 
#SBATCH --ntasks-per-node=8 
#SBATCH -N 1 
#SBATCH --mem=10G 
#SBATCH --gres=gpu:A100:1 
#SBATCH --time=2:00:00 

 

GPU Preemption Policy 

 

Jobs in gpu_requeue and requeue may be preempted by higher-priority partitions. gpu_requeue has higher priority than requeue. 

 

Selecting a GPU Type 

 

Specific GPU types can be listed using the sinfo commands below. 

sinfo -o "|%30n|%30C|%30m|%30z|%30G|" -p gpu_requeue 
 

Specific GPU: --gres=gpu:A100:1 

Any available GPU: --gres=gpu:1 

 

Viewing Available GPU Resources 

 

gpu partition: 
sinfo -o "|%30n|%30C|%30m|%30z|%30G|" -p gpu 

gpu_requeue partition: 
sinfo -o "|%30n|%30C|%30m|%30z|%30G|" -p gpu_requeue 

 

Note 

  1. The above resource selection/partition configuration applies to open on demand(ondemand.rnet.missouri.edu) web interface as well.