shared Clause
- Updated2023-02-21
- 1 minute(s) read
shared Clause
Specifies one or more variables are shared between all threads in a team.
Format
shared(var)
Example
Refer to OpenMP\matrixmult.cws for an example of using the OpenMP shared clause.