From 2ad94c70bb95321d750f9dacf686d1f67efba045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Claremar?= <70746791+bclaremar@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:21:21 +0200 Subject: [PATCH] slurm_intro.md {code-block} console --- docs/slurm_intro.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/slurm_intro.md b/docs/slurm_intro.md index 9f79a73..a37a6ad 100644 --- a/docs/slurm_intro.md +++ b/docs/slurm_intro.md @@ -70,7 +70,8 @@ ``````{challenge} Try interactive -```bash= +``` {code-block} console + interactive -A naiss2023-22-793 -p core -n 1 -t 10:00 ``` - Which node are you on? @@ -124,21 +125,25 @@ echo Hello world! - Put it into a file named “jobtemplate.sh” - Make the file executable (chmod) - Submit the job: -``` +``` {code-block} console + $ sbatch jobtemplate.sh ``` - Note the job id! - Check the queue: -``` + +``` {code-block} console $ squeue -u $ jobinfo -u ``` - When it’s done (rather fast), look for the output file (slurm-.out): -``` + +``` {code-block} console $ ls -lrt slurm-* ``` - Check the output file to see if it ran correctly -``` + +``` {code-block} console $ cat ``` ``````