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

Merge branch 'long_options' into 'preview'

Long options

See merge request !785
parents 9ad6418c 54ab5c30
No related branches found
No related tags found
2 merge requests!795Automated merge from preview to main,!785Long options
...@@ -38,6 +38,9 @@ RUN echo 'test \! -e /docs/tud_theme/javascripts/mermaid.min.js && test -x /docs ...@@ -38,6 +38,9 @@ RUN echo 'test \! -e /docs/tud_theme/javascripts/mermaid.min.js && test -x /docs
RUN echo 'exec "$@"' >> /entrypoint.sh RUN echo 'exec "$@"' >> /entrypoint.sh
RUN chmod u+x /entrypoint.sh RUN chmod u+x /entrypoint.sh
# Workaround https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29022
RUN git config --global --add safe.directory /docs
WORKDIR /docs WORKDIR /docs
CMD ["mkdocs", "build", "--verbose", "--strict"] CMD ["mkdocs", "build", "--verbose", "--strict"]
......
...@@ -328,8 +328,8 @@ specifications for each component of the heterogeneous job should be separated w ...@@ -328,8 +328,8 @@ specifications for each component of the heterogeneous job should be separated w
Running a job step on a specific component is supported by the option `--het-group`. Running a job step on a specific component is supported by the option `--het-group`.
```console ```console
marie@login$ salloc --ntasks 1 --cpus-per-task 4 --partition <partition> --mem=200G : \ marie@login$ salloc --ntasks=1 --cpus-per-task=4 --partition <partition> --mem=200G : \
--ntasks 8 --cpus-per-task 1 --gres=gpu:8 --mem=80G --partition <partition> --ntasks=8 --cpus-per-task=1 --gres=gpu:8 --mem=80G --partition <partition>
[...] [...]
marie@login$ srun ./my_application <args for master tasks> : ./my_application <args for worker tasks> marie@login$ srun ./my_application <args for master tasks> : ./my_application <args for worker tasks>
``` ```
...@@ -340,16 +340,16 @@ components by a line containing the directive `#SBATCH hetjob`. ...@@ -340,16 +340,16 @@ components by a line containing the directive `#SBATCH hetjob`.
```bash ```bash
#!/bin/bash #!/bin/bash
#SBATCH --ntasks 1 #SBATCH --ntasks=1
#SBATCH --cpus-per-task 4 #SBATCH --cpus-per-task=4
#SBATCH --partition <partition> #SBATCH --partition=<partition>
#SBATCH --mem=200G #SBATCH --mem=200G
#SBATCH hetjob # required to separate groups #SBATCH hetjob # required to separate groups
#SBATCH --ntasks 8 #SBATCH --ntasks=8
#SBATCH --cpus-per-task 1 #SBATCH --cpus-per-task=1
#SBATCH --gres=gpu:8 #SBATCH --gres=gpu:8
#SBATCH --mem=80G #SBATCH --mem=80G
#SBATCH --partition <partition> #SBATCH --partition=<partition>
srun ./my_application <args for master tasks> : ./my_application <args for worker tasks> srun ./my_application <args for master tasks> : ./my_application <args for worker tasks>
...@@ -474,7 +474,7 @@ at no extra cost. ...@@ -474,7 +474,7 @@ at no extra cost.
??? example "Show all jobs since the beginning of year 2021" ??? example "Show all jobs since the beginning of year 2021"
```console ```console
marie@login$ sacct -S 2021-01-01 [-E now] marie@login$ sacct --starttime 2021-01-01 [--endtime now]
``` ```
## Jobs at Reservations ## Jobs at Reservations
......
...@@ -186,7 +186,7 @@ When `srun` is used within a submission script, it inherits parameters from `sba ...@@ -186,7 +186,7 @@ When `srun` is used within a submission script, it inherits parameters from `sba
`--ntasks=1`, `--cpus-per-task=4`, etc. So we actually implicitly run the following `--ntasks=1`, `--cpus-per-task=4`, etc. So we actually implicitly run the following
```bash ```bash
srun --ntasks=1 --cpus-per-task=4 ... --partition=ml some-gpu-application srun --ntasks=1 --cpus-per-task=4 [...] --partition=ml <some-gpu-application>
``` ```
Now, our goal is to run four instances of this program concurrently in a single batch script. Of Now, our goal is to run four instances of this program concurrently in a single batch script. Of
...@@ -237,7 +237,7 @@ inherited from the surrounding `sbatch` context. The following line would be suf ...@@ -237,7 +237,7 @@ inherited from the surrounding `sbatch` context. The following line would be suf
job in this example: job in this example:
```bash ```bash
srun --exclusive --gres=gpu:1 --ntasks=1 some-gpu-application & srun --exclusive --gres=gpu:1 --ntasks=1 <some-gpu-application> &
``` ```
Yet, it adds some extra safety to leave them in, enabling the Slurm batch system to complain if not Yet, it adds some extra safety to leave them in, enabling the Slurm batch system to complain if not
...@@ -278,7 +278,8 @@ use up all resources in the nodes: ...@@ -278,7 +278,8 @@ use up all resources in the nodes:
#SBATCH --exclusive # ensure that nobody spoils my measurement on 2 x 2 x 8 cores #SBATCH --exclusive # ensure that nobody spoils my measurement on 2 x 2 x 8 cores
#SBATCH --time=00:10:00 #SBATCH --time=00:10:00
#SBATCH --job-name=Benchmark #SBATCH --job-name=Benchmark
#SBATCH --mail-user=your.name@tu-dresden.de #SBATCH --mail-type=end
#SBATCH --mail-user=<your.email>@tu-dresden.de
srun ./my_benchmark srun ./my_benchmark
``` ```
...@@ -313,14 +314,14 @@ name specific to the job: ...@@ -313,14 +314,14 @@ name specific to the job:
```Bash ```Bash
#!/bin/bash #!/bin/bash
#SBATCH --array 0-9 #SBATCH --array=0-9
#SBATCH --output=arraytest-%A_%a.out #SBATCH --output=arraytest-%A_%a.out
#SBATCH --error=arraytest-%A_%a.err #SBATCH --error=arraytest-%A_%a.err
#SBATCH --ntasks=864 #SBATCH --ntasks=864
#SBATCH --time=08:00:00 #SBATCH --time=08:00:00
#SBATCH --job-name=Science1 #SBATCH --job-name=Science1
#SBATCH --mail-type=end #SBATCH --mail-type=end
#SBATCH --mail-user=your.name@tu-dresden.de #SBATCH --mail-user=<your.email>@tu-dresden.de
echo "Hi, I am step $SLURM_ARRAY_TASK_ID in this array job $SLURM_ARRAY_JOB_ID" echo "Hi, I am step $SLURM_ARRAY_TASK_ID in this array job $SLURM_ARRAY_JOB_ID"
``` ```
......
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