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
Commits
dbf6c464
Commit
dbf6c464
authored
3 years ago
by
Gitlab Bot
Browse files
Options
Downloads
Plain Diff
Merge branch 'preview' into merge-preview-in-main
parents
12017a7c
fafb8eed
No related branches found
Branches containing commit
No related tags found
2 merge requests
!603
Issue285
,
!438
Automated merge from preview to main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md
+17
-13
17 additions, 13 deletions
...s/jobs_and_resources/binding_and_distribution_of_tasks.md
with
17 additions
and
13 deletions
doc.zih.tu-dresden.de/docs/jobs_and_resources/binding_and_distribution_of_tasks.md
+
17
−
13
View file @
dbf6c464
...
@@ -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

#!/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

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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment