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
!438
Automated merge from preview to main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Automated merge from preview to main
merge-preview-in-main
into
main
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Jan Frenzel
requested to merge
merge-preview-in-main
into
main
3 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Created by CI
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
dbf6c464
5 commits,
3 years ago
1 file
+
17
−
13
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
+
17
−
13
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
@@ -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
Loading