From 6a71b2d66538750f7c4dfe0efbb0377c08bfefd1 Mon Sep 17 00:00:00 2001
From: Roman Sliva <roman.sliva@vsb.cz>
Date: Thu, 8 Dec 2022 11:52:22 +0100
Subject: [PATCH] Update job-scheduling.md

---
 docs.it4i/cs/job-scheduling.md | 62 +++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 31 deletions(-)

diff --git a/docs.it4i/cs/job-scheduling.md b/docs.it4i/cs/job-scheduling.md
index 6d126e17d..4cc93e114 100644
--- a/docs.it4i/cs/job-scheduling.md
+++ b/docs.it4i/cs/job-scheduling.md
@@ -37,6 +37,37 @@ Show job details for executing job from job session
 $ scontrol -d show job $SLURM_JOBID
 ```
 
+## Running Interactive Jobs
+
+Run interactive job
+
+```console
+ $ salloc -A PROJECT-ID -p p01-arm
+```
+
+Run interactive job, with X11 forwarding
+
+```console
+ $ salloc -A PROJECT-ID -p p01-arm --x11
+```
+
+!!! warning
+    Do not use `srun` for initiating interactive jobs, subsequent `srun`, `mpirun` invocations would block forever.
+
+## Running Batch Jobs
+
+Run batch job
+
+```console
+ $ sbatch -A PROJECT-ID -p p01-arm ../script.sh
+```
+
+Useful command options (salloc, sbatch, srun)
+
+* -n, --ntasks
+* -c, --cpus-per-task
+* -N, --nodes
+
 ## Slurm Job Environment Variables
 
 Slurm provides usefull information to the job via environment variables. Environment variables are available on all nodes allocated to job when accessed via Slurm supported means (srun, compatible mpirun).
@@ -73,37 +104,6 @@ p03-amd01
 p03-amd02
 ```
 
-## Running Interactive Jobs
-
-Run interactive job
-
-```console
- $ salloc -A PROJECT-ID -p p01-arm
-```
-
-Run interactive job, with X11 forwarding
-
-```console
- $ salloc -A PROJECT-ID -p p01-arm --x11
-```
-
-!!! warning
-    Do not use `srun` for initiating interactive jobs, subsequent `srun`, `mpirun` invocations would block forever.
-
-## Running Batch Jobs
-
-Run batch job
-
-```console
- $ sbatch -A PROJECT-ID -p p01-arm ../script.sh
-```
-
-Useful command options (salloc, sbatch, srun)
-
-* -n, --ntasks
-* -c, --cpus-per-task
-* -N, --nodes
-
 ## Partitions
 
 | PARTITION | nodes| cores per node | features |
-- 
GitLab