Skip to content
Snippets Groups Projects
Commit 5e1a1dd9 authored by Jan Frederik Engels's avatar Jan Frederik Engels :new_moon:
Browse files

Add exercises.

parent 8631eef4
No related branches found
No related tags found
1 merge request!72Draft: Compute devices lecture
Pipeline #70250 passed
---
title: "Parallelism"
---
### Tasks:
1. Revisit `schedule` and try `schedule(dynamic,100)` as in the hands-on and
explain what happens and why that differs from `schedule(static, 100)`.
42. Parallelize the loop in `maxval`. Search for the comment
`// HOMEWORK: Parallelise this loop!`. All information needed can be found
in the lecture slides.
23. Do a strong-scaling experiment starting with 2 threads and up to 32
threads and plot the result.
42. If you were to increase the number of threads, do you expect the speedup
to continue indefinitely? If not, which limits can you imagine? Feel free
to use kitchen metaphors.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment