From 31fed44b92a5c88a62fddba65d9dd08dd1c802dc Mon Sep 17 00:00:00 2001 From: William Guimont-Martin Date: Mon, 15 Jan 2024 16:16:29 -0500 Subject: [PATCH] Update warm_up.md --- docs/warm_up.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/warm_up.md b/docs/warm_up.md index 464e1cd..aa0f1ef 100644 --- a/docs/warm_up.md +++ b/docs/warm_up.md @@ -22,6 +22,8 @@ echo "Exiting" Créer un script qui va lancer plusieurs jobs, `allocate_all_gpu.sh` ```shell +#!/bin/bash + for i in $(seq 1 30); do sbatch allocate_gpu.sh @@ -31,6 +33,8 @@ done Pour annuler toutes les jobs, `cancel_all.sh`: ```shell +#!/bin/bash + squeue | awk 'NR>1 {print $1}' | xargs scancel rm *.out ```