Skip to content
Snippets Groups Projects
Commit fdbcc724 authored by Danny Marc Rotscher's avatar Danny Marc Rotscher
Browse files

Merge branch 'rotscher--tu-dresden.de-preview-patch-33500' into 'preview'

Update doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md

Closes #80

See merge request !436
parents 2111e78e f4fd26e2
No related branches found
No related tags found
3 merge requests!446docs: Add Jupyter Teaching Example,!438Automated merge from preview to main,!436Update 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
![OpenMP](misc/openmp.png)
{: 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
![OpenMP](misc/openmp.png)
{: align=center}
export OMP_NUM_THREADS=16
srun --ntasks 1 --cpus-per-task $OMP_NUM_THREADS ./application
```
## MPI Strategies
......
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