Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpc-course-hands-on
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex Wiens
hpc-course-hands-on
Commits
81239830
There was an error fetching the commit references. Please try again later.
Commit
81239830
authored
11 months ago
by
Alex Wiens
Browse files
Options
Downloads
Patches
Plain Diff
03-hpc-tuning: Hands-on B: Add example jobscript
parent
803e3fc0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
03-hpc-tuning/B.md
+31
-0
31 additions, 0 deletions
03-hpc-tuning/B.md
with
31 additions
and
0 deletions
03-hpc-tuning/B.md
+
31
−
0
View file @
81239830
...
...
@@ -73,6 +73,37 @@ Use the OpenMP environment variables and/or `numactl` to configure the pinning o
*
What is the inter-socket memory-bandwidth in GB/s?
Here is an example jobscript for the fourth case with pinning 8 threads to the first socket and data placement on the second socket.
Note that
`numactl`
expects "NUMA nodes" of which there are 4 per socket on the compute nodes.
```
bash
#!/usr/bin/env bash
#SBATCH --job-name=stream
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=00:30:00
#SBATCH --account=hpc-lco-usrtr
#SBATCH --exclusive
module reset
module load toolchain/intel/2022a
export
OMP_DISPLAY_AFFINITY
=
true
# set OPENMP to
# - use 8 worker threads
# - spread threads over allowed cores
# - pin threads to single cores
export
OMP_NUM_THREADS
=
8
export
OMP_PROC_BIND
=
spread
export
OMP_PLACES
=
cores
# mask threads to use NUMA domains on first socket (0,1,2,3) and
# mask memory allocation to use NUMA domains on second socket (4,5,6,7)
numactl
--cpunodebind
=
0,1,2,3
--membind
=
4,5,6,7 ./stream_c.exe
```
---
Find the solution to these exercises
[
in the solution branch
](
/../solution/03-hpc-tuning
)
.
...
...
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