Skip to content
Snippets Groups Projects
Commit ca2da51f authored by Claudia Frauen's avatar Claudia Frauen
Browse files

Added link to OpenMP documention on reductions

parent 4a143f1e
No related branches found
No related tags found
1 merge request!72Draft: Compute devices lecture
Pipeline #69531 passed
...@@ -216,6 +216,9 @@ Starting with batter for $N$ pancakes and 1 pan, we can scale by using $P$ pans ...@@ -216,6 +216,9 @@ Starting with batter for $N$ pancakes and 1 pan, we can scale by using $P$ pans
for (int i = 0; i < N; ++i) for (int i = 0; i < N; ++i)
sum = sum + a[i]; sum = sum + a[i];
``` ```
For other reduction operations see
[OpenMP documentation](https://www.openmp.org/spec-html/5.1/openmpsu117.html#x152-1720002.21.5)
# Doing stuff wrong # Doing stuff wrong
## What is going wrong here? ## What is going wrong here?
......
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