Skip to content

JADE HPC

Interactive mode

Allocate gpus to run jobs in interactive mode

srun --partition=small --gres=gpu:1 --pty /bin/bash

# --partition
# =big: 24h, 5 jobs, 8GPUs
# =small: 6*24h, 8 jobs, 1GPU
# =devel: 1h, 1 job, 1GPU

Environments

Note: Do not activate conda env before the interative mode. Would cause some issues...

module load python/anaconda3 cuda/11.1-gcc-9.1.0 gcc/9.1.0 

module av # Check available modules

Submit a job

Use sbatch to submit a job to run your script

sbatch <name>.sh

And a typical script is like:

#!/bin/bash
# set the number of nodes
#SBATCH --nodes=1
# set max wallclock time
#SBATCH --time=20:00:00
# set name of job
#SBATCH -J <job_name>
# set number of GPUs
#SBATCH --gres=gpu:1

# Partition dedicated to jobs that utilise a single GPUs each.
#SBATCH --partition=small
# load the anaconda module
module load python/anaconda3 cuda/11.1-gcc-9.1.0 gcc/9.1.0
# if you need the custom conda environment:
#source activate custom


source activate <env>

# mail alert at start, end and abortion of execution
#SBATCH --mail-type=ALL
# send mail to this address
#SBATCH --mail-user=username@gmail.com
# execute the program

python <script>.py


source deactivate