single Directive
- Updated2023-02-21
- 1 minute(s) read
Specifies code in a region to execute on a single thread. The executing thread might not be the master thread.
Binding thread set: current team
Format
#pragma omp single [clause[ [,]clause] ..] newline
code block
Example
Refer to OpenMP\2dfft_omp.cws for an example of using the OpenMP single directive.