Skip to content
Snippets Groups Projects

added how to finish from salloc

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -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`
Loading