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 4677a625300c59a04160389f4cf9a3bf975018c8..ad411b78cff4c8c4fcd06c4028cb14b6c6438c4f 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 @@ -74,8 +76,10 @@ node and odd on each second socket of each node. ### Core Bound -Note: With this command the tasks will be bound to a core for the entire runtime of your -application. +!!! note + + With this command the tasks will be bound to a core for the entire runtime of your + application. #### Distribution: block:block