Skip to content
Snippets Groups Projects
Commit 46e6f638 authored by Roman Sliva's avatar Roman Sliva
Browse files

Update slurm-job-submission-and-execution.md

parent 0128bd83
No related branches found
No related tags found
No related merge requests found
Pipeline #33228 passed with warnings
...@@ -80,7 +80,7 @@ $ squeue --me -t pending ...@@ -80,7 +80,7 @@ $ squeue --me -t pending
Show jobs for given project: Show jobs for given project:
```console ```console
squeue -A PROJECT-ID $ squeue -A PROJECT-ID
``` ```
## Running Interactive Jobs ## Running Interactive Jobs
...@@ -88,19 +88,19 @@ squeue -A PROJECT-ID ...@@ -88,19 +88,19 @@ squeue -A PROJECT-ID
Run interactive job - queue qcpu_exp, one node by default, one task by default: Run interactive job - queue qcpu_exp, one node by default, one task by default:
```console ```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: 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 ```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: Run interactive job, with X11 forwarding:
```console ```console
$ salloc -A PROJECT-ID -p qcpu_exp --x11 $ salloc -A PROJECT-ID -p qcpu_exp --x11
``` ```
!!! warning !!! warning
...@@ -111,7 +111,8 @@ Run interactive job, with X11 forwarding: ...@@ -111,7 +111,8 @@ Run interactive job, with X11 forwarding:
Run batch job: Run batch job:
```console ```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: File script content:
...@@ -143,7 +144,7 @@ Slurm provides useful information to the job via environment variables. Environm ...@@ -143,7 +144,7 @@ Slurm provides useful information to the job via environment variables. Environm
See all Slurm variables See all Slurm variables
``` ```
set | grep ^SLURM $ set | grep ^SLURM
``` ```
### Useful Variables ### Useful Variables
...@@ -186,7 +187,7 @@ $ scontrol update JobId=JOBID ATTR=VALUE ...@@ -186,7 +187,7 @@ $ scontrol update JobId=JOBID ATTR=VALUE
Modify job's time limit: 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: Set/modify job's comment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment