Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
generic software skills
lecture materials
Commits
d1b74a97
Commit
d1b74a97
authored
9 months ago
by
Dominik Zobel
Browse files
Options
Downloads
Patches
Plain Diff
Update memory mountain slides and exercise
parent
d1d25c70
No related branches found
Branches containing commit
No related tags found
1 merge request
!74
Memory hierarchies lecture
Pipeline
#71692
passed
9 months ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lectures/memory-hierarchies/slides.qmd
+15
-6
15 additions, 6 deletions
lectures/memory-hierarchies/slides.qmd
with
15 additions
and
6 deletions
lectures/memory-hierarchies/slides.qmd
+
15
−
6
View file @
d1b74a97
...
...
@@ -446,11 +446,18 @@ Based on a typical Levante node (AMD EPYC 7763)
## Memory Mountain (1/2)
Describe what is done
:::{.smaller}
Code for program contained in "Computer Systems":
<https://csapp.cs.cmu.edu/3e/mountain.tar>
:::
- Influence of block size
- Influence of stride
- Measurements done on Levante compute node
- Process a representative amount of data
- Use `stride` between array elements to control spatial locality
- Use `size` of array to control temporal locality
- Also warm up the cache before the actual measurements
...
...
@@ -469,8 +476,10 @@ $\approx$ Factor 20 between best and worst access
## Hands-On {.handson}
- Either example with optimal and sub-optimal memory access, i.e. cache blocking (see `nproma`)
- Or OpenMP reduction (hand implementation), reference/continuation from parallelism lecture?!
1. Download and extract the C source code of the memory mountain program linked in the from previous slides
2. Compile the program and run it on your PC or a Levante compute node
3. Which factor do you get between best and worst performance?
4. (optional) Visualize your results
...
...
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