collapse-openmp
Differences
This shows you the differences between two versions of the page.
| collapse-openmp [June 11, 2026 at 07:42] – created - external edit 127.0.0.1 | collapse-openmp [June 11, 2026 at 09:18] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # Collapse (OpenMP) | # Collapse (OpenMP) | ||
| - | **Collapse** is an OpenMP clause that merges multiple perfectly-nested loops into a single flat iteration space before distributing work across threads. When a loop nest has too few outer iterations to keep all threads busy, distributing only the outer loop leaves most threads idle. `collapse(N)` multiplies the available parallelism by treating the combined iteration space as one loop. " | + | **Collapse** is an OpenMP clause that merges multiple perfectly-nested loops into a single flat iteration space before distributing work across threads. |
| + | |||
| + | When a loop nest has too few outer iterations to keep all threads busy, distributing only the outer loop leaves most threads idle. `collapse(N)` multiplies the available parallelism by treating the combined iteration space as one loop. " | ||
| ```c | ```c | ||
collapse-openmp.1781163760.txt.gz · Last modified: by 127.0.0.1
