From f4fd26e2b98aa3a8dde0fb0dc1de275a61e10b22 Mon Sep 17 00:00:00 2001 From: Danny Marc Rotscher <danny.rotscher@tu-dresden.de> Date: Wed, 8 Dec 2021 06:25:50 +0100 Subject: [PATCH] Update doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md --- .../binding_and_distribution_of_tasks.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md b/doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md index 4677a6253..e18326e71 100644 --- a/doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md +++ b/doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md @@ -32,22 +32,24 @@ and `--distribution` for different job types. ## OpenMP Strategies -The illustration below shows the default binding of a pure OpenMP-job on a single node with 16 CPUs +The illustration below shows the default binding of a pure OpenMP job on a single node with 16 CPUs on which 16 threads are allocated. -```Bash -#!/bin/bash -#SBATCH --nodes=1 -#SBATCH --tasks-per-node=1 -#SBATCH --cpus-per-task=16 + +{: align=center} -export OMP_NUM_THREADS=16 +!!! example "Default binding and default distribution" -srun --ntasks 1 --cpus-per-task $OMP_NUM_THREADS ./application -``` + ```bash + #!/bin/bash + #SBATCH --nodes=1 + #SBATCH --tasks-per-node=1 + #SBATCH --cpus-per-task=16 - -{: align=center} + export OMP_NUM_THREADS=16 + + srun --ntasks 1 --cpus-per-task $OMP_NUM_THREADS ./application + ``` ## MPI Strategies -- GitLab