Site Tools


master-openmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
master-openmp [June 11, 2026 at 07:42] – created - external edit 127.0.0.1master-openmp [June 11, 2026 at 11:08] (current) Ivan Janevski
Line 1: Line 1:
 # Master (OpenMP) # Master (OpenMP)
-**Master** is an OpenMP directive that restricts execution of a block to thread 0. Unlike [[single-openmp|`single`]], there is no implicit barrier. Other threads skip the block entirely and continue immediately, making it suitable for non-critical side effects like printing progress or updating a log counter where stalling the whole team would be wasteful.+**Master** is an OpenMP directive that restricts execution of a block to thread 0. Unlike [[single-openmp|single]], there is no implicit barrier. Other threads skip the block entirely and continue immediately, making it suitable for non-critical side effects like printing progress or updating a log counter where stalling the whole team would be wasteful.
  
 ```c ```c
master-openmp.1781163777.txt.gz · Last modified: by 127.0.0.1