You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[copyin](#copyin) | Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.
24
-
[copyprivate](#copyprivate) | Specifies that one or more variables should be shared among all threads.
25
-
[default](#default-openmp) | Specifies the behavior of unscoped variables in a parallel region.
26
-
[firstprivate](#firstprivate) | Specifies that each thread should have its own instance of a variable, and that the variable should be initialized with the value of the variable, because it exists before the parallel construct.
27
-
[if](#if-openmp) | Specifies whether a loop should be executed in parallel or in serial.
28
-
[lastprivate](#lastprivate) | Specifies that the enclosing context's version of the variable is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).
29
-
[nowait](#nowait) | Overrides the barrier implicit in a directive.
30
-
[num_threads](#num-threads) | Sets the number of threads in a thread team.
31
-
[ordered](#ordered-openmp-clauses) | Required on a parallel [for](openmp-directives.md#for-openmp) statement if an [ordered](openmp-directives.md#ordered-openmp-directives) directive is to be used in the loop.
32
-
[private](#private-openmp) | Specifies that each thread should have its own instance of a variable.
33
-
[reduction](#reduction) | Specifies that one or more variables that are private to each thread are the subject of a reduction operation at the end of the parallel region.
34
-
[schedule](#schedule) | Applies to the [for](openmp-directives.md#for-openmp) directive.
35
-
[shared](#shared-openmp) | Specifies that one or more variables should be shared among all threads.
21
+
|Clause|Description|
22
+
|------|-----------|
23
+
|[copyin](#copyin)|Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.|
24
+
|[copyprivate](#copyprivate)|Specifies that one or more variables should be shared among all threads.|
25
+
|[default](#default-openmp)|Specifies the behavior of unscoped variables in a parallel region.|
26
+
|[firstprivate](#firstprivate)|Specifies that each thread should have its own instance of a variable, and that the variable should be initialized with the value of the variable, because it exists before the parallel construct.|
27
+
|[if](#if-openmp)|Specifies whether a loop should be executed in parallel or in serial.|
28
+
|[lastprivate](#lastprivate)|Specifies that the enclosing context's version of the variable is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).|
29
+
|[nowait](#nowait)|Overrides the barrier implicit in a directive.|
30
+
|[num_threads](#num-threads)|Sets the number of threads in a thread team.|
31
+
|[ordered](#ordered-openmp-clauses)|Required on a parallel [for](openmp-directives.md#for-openmp) statement if an [ordered](openmp-directives.md#ordered-openmp-directives) directive is to be used in the loop.|
32
+
|[private](#private-openmp)|Specifies that each thread should have its own instance of a variable.|
33
+
|[reduction](#reduction)|Specifies that one or more variables that are private to each thread are the subject of a reduction operation at the end of the parallel region.|
34
+
|[schedule](#schedule)|Applies to the [for](openmp-directives.md#for-openmp) directive.|
35
+
|[shared](#shared-openmp)|Specifies that one or more variables should be shared among all threads.|
36
36
37
37
## <aname="copyin"></a>copyin
38
38
@@ -219,7 +219,7 @@ An integral expression that, if it evaluates to true (nonzero), causes the code
219
219
-[for](openmp-directives.md#for-openmp)
220
220
-[sections](openmp-directives.md#sections-openmp)
221
221
222
-
For more information, see [2.3 parallel Construct](../../../parallel/openmp/2-3-parallel-construct.md).
222
+
For more information, see [2.3 parallel construct](../../../parallel/openmp/2-3-parallel-construct.md).
223
223
224
224
### Example
225
225
@@ -299,7 +299,7 @@ nowait
299
299
-[sections](openmp-directives.md#sections-openmp)
300
300
-[single](openmp-directives.md#single)
301
301
302
-
For more information, see [2.4.1 for Construct](../../../parallel/openmp/2-4-1-for-construct.md), [2.4.2 sections Construct](../../../parallel/openmp/2-4-2-sections-construct.md), and [2.4.3 single Construct](../../../parallel/openmp/2-4-3-single-construct.md).
302
+
For more information, see [2.4.1 for construct](../../../parallel/openmp/2-4-1-for-construct.md), [2.4.2 sections construct](../../../parallel/openmp/2-4-2-sections-construct.md), and [2.4.3 single construct](../../../parallel/openmp/2-4-3-single-construct.md).
303
303
304
304
### Example
305
305
@@ -363,15 +363,15 @@ The number of threads
363
363
364
364
### Remarks
365
365
366
-
The `num_threads` clause has the same functionality as the [omp_set_num_threads](../../../parallel/openmp/reference/omp-set-num-threads.md) function.
366
+
The `num_threads` clause has the same functionality as the [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) function.
367
367
368
368
`num_threads` applies to the following directives:
369
369
370
370
-[parallel](openmp-directives.md#parallel)
371
371
-[for](openmp-directives.md#for-openmp)
372
372
-[sections](openmp-directives.md#sections-openmp)
373
373
374
-
For more information, see [2.3 parallel Construct](../../../parallel/openmp/2-3-parallel-construct.md).
374
+
For more information, see [2.3 parallel construct](../../../parallel/openmp/2-3-parallel-construct.md).
375
375
376
376
### Example
377
377
@@ -389,7 +389,7 @@ ordered
389
389
390
390
`ordered` applies to the [for](openmp-directives.md#for-openmp) directive.
391
391
392
-
For more information, see [2.4.1 for Construct](../../../parallel/openmp/2-4-1-for-construct.md).
392
+
For more information, see [2.4.1 for construct](../../../parallel/openmp/2-4-1-for-construct.md).
393
393
394
394
### Example
395
395
@@ -759,7 +759,7 @@ The kind of scheduling:
759
759
760
760
### Remarks
761
761
762
-
For more information, see [2.4.1 for Construct](../../../parallel/openmp/2-4-1-for-construct.md).
762
+
For more information, see [2.4.1 for construct](../../../parallel/openmp/2-4-1-for-construct.md).
[omp_lock_t](#omp-lock-t) | A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.
24
-
[omp_nest_lock_t](#omp-nest-lock-t) | A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.
21
+
|Data type|Description|
22
+
|---------|-----------|
23
+
|[omp_lock_t](#omp-lock-t)|A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.|
24
+
|[omp_nest_lock_t](#omp-nest-lock-t)|A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.|
25
25
26
26
## <aname="omp-lock-t"></a>omp_lock_t
27
27
28
28
A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.
For more information, see [3.2 Lock Functions](../../../parallel/openmp/3-2-lock-functions.md).
38
+
For more information, see [3.2 Lock functions](../../../parallel/openmp/3-2-lock-functions.md).
39
39
40
40
### Example
41
41
42
-
See [omp_init_lock](../../../parallel/openmp/reference/omp-init-lock.md) for an example of using `omp_lock_t`.
42
+
See [omp_init_lock](openmp-functions.md#omp-init-lock) for an example of using `omp_lock_t`.
43
43
44
44
## <aname="omp-nest-lock-t"></a>omp_nest_lock_t
45
45
46
46
A type that holds the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.
0 commit comments