Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Merge requests
!436
Update doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md
rotscher--tu-dresden.de-preview-patch-33500
into
preview
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Danny Marc Rotscher
requested to merge
rotscher--tu-dresden.de-preview-patch-33500
into
preview
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#80 (closed)
0
0
Merge request reports
Compare
preview
preview (base)
and
latest version
latest version
f4fd26e2
1 commit,
3 years ago
1 file
+
13
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md
+
13
−
11
Options
@@ -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
Loading