From 46e6f638b67f07f15f001dfd2ef2f6d4fd1a9f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Sl=C3=ADva?= <roman.sliva@vsb.cz> Date: Thu, 20 Jul 2023 14:27:06 +0200 Subject: [PATCH] Update slurm-job-submission-and-execution.md --- .../general/slurm-job-submission-and-execution.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs.it4i/general/slurm-job-submission-and-execution.md b/docs.it4i/general/slurm-job-submission-and-execution.md index 4444bdec5..091475363 100644 --- a/docs.it4i/general/slurm-job-submission-and-execution.md +++ b/docs.it4i/general/slurm-job-submission-and-execution.md @@ -80,7 +80,7 @@ $ squeue --me -t pending Show jobs for given project: ```console -squeue -A PROJECT-ID +$ squeue -A PROJECT-ID ``` ## Running Interactive Jobs @@ -88,19 +88,19 @@ squeue -A PROJECT-ID Run interactive job - queue qcpu_exp, one node by default, one task by default: ```console - $ salloc -A PROJECT-ID -p qcpu_exp +$ salloc -A PROJECT-ID -p qcpu_exp ``` Run interactive job on four nodes, 36 tasks per node (Barbora cluster, cpu partition recommended value based on node core count), two hours time limit: ```console - $ salloc -A PROJECT-ID -p qcpu -N 4 --ntasks-per-node 36 -t 2:00:00 +$ salloc -A PROJECT-ID -p qcpu -N 4 --ntasks-per-node 36 -t 2:00:00 ``` Run interactive job, with X11 forwarding: ```console - $ salloc -A PROJECT-ID -p qcpu_exp --x11 +$ salloc -A PROJECT-ID -p qcpu_exp --x11 ``` !!! warning @@ -111,7 +111,8 @@ Run interactive job, with X11 forwarding: Run batch job: ```console - $ sbatch script.sh +$ cd my_work_dir # submit directory my_work_dir will be also used as working directory for submitted job +$ sbatch script.sh ``` File script content: @@ -143,7 +144,7 @@ Slurm provides useful information to the job via environment variables. Environm See all Slurm variables ``` -set | grep ^SLURM +$ set | grep ^SLURM ``` ### Useful Variables @@ -186,7 +187,7 @@ $ scontrol update JobId=JOBID ATTR=VALUE Modify job's time limit: ``` -scontrol update job JOBID timelimit=4:00:00 +$ scontrol update job JOBID timelimit=4:00:00 ``` Set/modify job's comment: -- GitLab