Skip to content
Snippets Groups Projects
Commit dbf6c464 authored by Gitlab Bot's avatar Gitlab Bot
Browse files

Merge branch 'preview' into merge-preview-in-main

parents 12017a7c fafb8eed
No related branches found
No related tags found
2 merge requests!603Issue285,!438Automated merge from preview to main
...@@ -32,22 +32,24 @@ and `--distribution` for different job types. ...@@ -32,22 +32,24 @@ and `--distribution` for different job types.
## OpenMP Strategies ## 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. on which 16 threads are allocated.
```Bash ![OpenMP](misc/openmp.png)
#!/bin/bash {: align=center}
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
#SBATCH --cpus-per-task=16
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) export OMP_NUM_THREADS=16
{: align=center}
srun --ntasks 1 --cpus-per-task $OMP_NUM_THREADS ./application
```
## MPI Strategies ## MPI Strategies
...@@ -74,8 +76,10 @@ node and odd on each second socket of each node. ...@@ -74,8 +76,10 @@ node and odd on each second socket of each node.
### Core Bound ### Core Bound
Note: With this command the tasks will be bound to a core for the entire runtime of your !!! note
application.
With this command the tasks will be bound to a core for the entire runtime of your
application.
#### Distribution: block:block #### Distribution: block:block
......
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