single-openmp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| single-openmp [June 11, 2026 at 11:08] – Ivan Janevski | single-openmp [June 13, 2026 at 03:13] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # Single (OpenMP) | # Single (OpenMP) | ||
| - | **Single** is an OpenMP directive that runs the enclosed block on exactly one thread, whichever arrives first. | + | **Single** is an OpenMP directive that runs the enclosed block on exactly one thread, whichever arrives first. All other threads skip the block and wait at an implicit barrier at the end, so the whole team is synchronised before continuing. It is commonly used for initialisation, |
| - | + | ||
| - | All other threads skip the block and wait at an implicit barrier at the end, so the whole team is synchronised before continuing. It is commonly used for initialisation, | + | |
| ```c | ```c | ||
single-openmp.1781176085.txt.gz · Last modified: by Ivan Janevski
