Skip to content
Snippets Groups Projects
Commit 2f46dfaa authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Merge branch 'gupa977e--tu-dresden.de-preview-patch-40583' into 'preview'

added how to finish from salloc

See merge request !684
parents e9152be1 83f6c38c
No related branches found
No related tags found
2 merge requests!687Automated merge from preview to main,!684added how to finish from salloc
...@@ -143,7 +143,8 @@ the command `salloc`. It takes the same options as `sbatch` to specify the requi ...@@ -143,7 +143,8 @@ the command `salloc`. It takes the same options as `sbatch` to specify the requi
`salloc` returns a new shell on the node, where you submitted the job. You need to use the command `salloc` returns a new shell on the node, where you submitted the job. You need to use the command
`srun` in front of the following commands to have these commands executed on the allocated `srun` in front of the following commands to have these commands executed on the allocated
resources. If you allocate more than one task, please be aware that `srun` will run the command on resources. If you allocate more than one task, please be aware that `srun` will run the command on
each allocated task by default! each allocated task by default! To release the allocated resources, invoke the command `exit` or
`scancel <jobid`.
```console ```console
marie@login$ salloc --nodes=2 marie@login$ salloc --nodes=2
...@@ -158,6 +159,7 @@ tauruslogin5.taurus.hrsk.tu-dresden.de ...@@ -158,6 +159,7 @@ tauruslogin5.taurus.hrsk.tu-dresden.de
marie@login$ srun hostname marie@login$ srun hostname
taurusi6604.taurus.hrsk.tu-dresden.de taurusi6604.taurus.hrsk.tu-dresden.de
taurusi6603.taurus.hrsk.tu-dresden.de taurusi6603.taurus.hrsk.tu-dresden.de
marie@login$ exit # ending the resource allocation
``` ```
The command `srun` also creates an allocation, if it is running outside any `sbatch` or `salloc` The command `srun` also creates an allocation, if it is running outside any `sbatch` or `salloc`
......
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