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

Layout: srun as command

parent a50b4b89
No related branches found
No related tags found
2 merge requests!1071Automated merge from preview to main,!1061Spring clean: Remove partition; use cluster
...@@ -204,10 +204,10 @@ three things: ...@@ -204,10 +204,10 @@ three things:
1. Allocate enough resources to accommodate multiple instances of our program. This can be achieved 1. Allocate enough resources to accommodate multiple instances of our program. This can be achieved
with an appropriate batch script header (see below). with an appropriate batch script header (see below).
1. Start job steps with srun as background processes. This is achieved by adding an ampersand at the 1. Start job steps with `srun` as background processes. This is achieved by adding an ampersand at
end of the `srun` command the end of the `srun` command.
1. Make sure that each background process gets its private resources. We need to set the resource 1. Make sure that each background process gets its private resources. We need to set the resource
fraction needed for a single run in the corresponding srun command. The total aggregated fraction needed for a single run in the corresponding `srun` command. The total aggregated
resources of all job steps must fit in the allocation specified in the batch script header. resources of all job steps must fit in the allocation specified in the batch script header.
Additionally, the option `--exclusive` is needed to make sure that each job step is provided with Additionally, the option `--exclusive` is needed to make sure that each job step is provided with
its private set of CPU and GPU resources. The following example shows how four independent its private set of CPU and GPU resources. The following example shows how four independent
......
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