#pragma omp master

Purpose

The omp master directive identifies a section of code that must be run only by the master thread.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-#--pragma--omp master---------------------------------------><

Usage

Threads other than the master thread will not execute the statement block associated with this construct.

No implied barrier exists on either entry to or exit from the master section.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us