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
{{ message }}
Repository navigation
Commit c16420b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/parallel/openmp/reference/openmp-clauses.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "OpenMP Clauses | Microsoft Docs"
2
+
title: "OpenMP clauses | Microsoft Docs"
3
3
ms.custom: ""
4
4
ms.date: "10/22/2018"
5
5
ms.technology: ["cpp-parallel"]
@@ -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).
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.
The [master](#master) directive lets you specify that a section of code should be executed only on the master thread.
631
631
632
-
For more information, see [2.4.3 single Construct](../../../parallel/openmp/2-4-3-single-construct.md).
632
+
For more information, see [2.4.3 single construct](../../../parallel/openmp/2-4-3-single-construct.md).
633
633
634
634
### Example
635
635
@@ -680,11 +680,11 @@ A comma-separated list of variables that you want to make private to a thread. `
680
680
681
681
The `threadprivate` directive supports no OpenMP clauses.
682
682
683
-
For more information, see [2.7.1 threadprivate Directive](../../../parallel/openmp/2-7-1-threadprivate-directive.md).
683
+
For more information, see [2.7.1 threadprivate directive](../../../parallel/openmp/2-7-1-threadprivate-directive.md).
684
684
685
685
The `threadprivate` directive is based on the [thread](../../../cpp/thread.md) attribute using the [__declspec](../../../cpp/declspec.md) keyword; limits on `__declspec(thread)` apply to `threadprivate`.
686
686
687
-
You can't use `threadprivate` in any DLL that will be loaded via [LoadLibrary](/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibrarya). This prohibition includes DLLs that are loaded with [/DELAYLOAD (Delay Load Import)](../../../build/reference/delayload-delay-load-import.md), which also uses `LoadLibrary`.
687
+
You can't use `threadprivate` in any DLL that will be loaded via [LoadLibrary](/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibrarya). This prohibition includes DLLs that are loaded with [/DELAYLOAD (delay load import)](../../../build/reference/delayload-delay-load-import.md), which also uses `LoadLibrary`.
688
688
689
689
You can use `threadprivate` in a DLL that is statically loaded at process startup.
690
690
@@ -711,4 +711,4 @@ Users have no control as to when the threads constituting the parallel region wi
711
711
712
712
### Example
713
713
714
-
For a sample of using `threadprivate`, see [private](../../../parallel/openmp/reference/private-openmp.md).
714
+
For a sample of using `threadprivate`, see [private](openmp-clauses.md#private-openmp).
[OMP_DYNAMIC](#omp-dynamic) | Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.
24
24
[OMP_NESTED](#omp-nested) | Specifies whether nested parallelism is enabled, unless nested parallelism is enabled or disabled with `omp_set_nested`.
25
-
[OMP_NUM_THREADS](#omp-num-threads) | Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](../../../parallel/openmp/reference/omp-set-num-threads.md) or [num_threads](openmp-clauses.md#num-threads).
25
+
[OMP_NUM_THREADS](#omp-num-threads) | Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).
26
26
[OMP_SCHEDULE](#omp-schedule) | Modifies the behavior of the [schedule](openmp-clauses.md#schedule) clause when `schedule(runtime)` is specified in a `for` or `parallel for` directive.
27
27
28
28
## <aname="omp-dynamic"></a>OMP_DYNAMIC
@@ -35,7 +35,7 @@ set OMP_DYNAMIC[=TRUE | =FALSE]
35
35
36
36
### Remarks
37
37
38
-
The `OMP_DYNAMIC` environment variable can be overridden by the [omp_set_dynamic](../../../parallel/openmp/reference/omp-set-dynamic.md) function.
38
+
The `OMP_DYNAMIC` environment variable can be overridden by the [omp_set_dynamic](openmp-functions.md#omp-set-dynamic) function.
39
39
40
40
The default value in the Visual C++ implementation of the OpenMP standard is `OMP_DYNAMIC=FALSE`.
41
41
@@ -65,7 +65,7 @@ set OMP_NESTED[=TRUE | =FALSE]
65
65
66
66
### Remarks
67
67
68
-
The `OMP_NESTED` environment variable can be overridden by the [omp_set_nested](../../../parallel/openmp/reference/omp-set-nested.md) function.
68
+
The `OMP_NESTED` environment variable can be overridden by the [omp_set_nested](openmp-functions.md#omp-set-nested) function.
69
69
70
70
The default value in the Visual C++ implementation of the OpenMP standard is `OMP_DYNAMIC=FALSE`.
71
71
@@ -87,7 +87,7 @@ set OMP_NESTED
87
87
88
88
## <aname="omp-num-threads"></a>OMP_NUM_THREADS
89
89
90
-
Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](../../../parallel/openmp/reference/omp-set-num-threads.md) or [num_threads](openmp-clauses.md#num-threads).
90
+
Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).
91
91
92
92
```
93
93
set OMP_NUM_THREADS[=num]
@@ -100,7 +100,7 @@ The maximum number of threads you want in the parallel region, up to 64 in the V
100
100
101
101
### Remarks
102
102
103
-
The `OMP_NUM_THREADS` environment variable can be overridden by the [omp_set_num_threads](../../../parallel/openmp/reference/omp-set-num-threads.md) function or by [num_threads](openmp-clauses.md#num-threads).
103
+
The `OMP_NUM_THREADS` environment variable can be overridden by the [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) function or by [num_threads](openmp-clauses.md#num-threads).
104
104
105
105
The default value of `num` in the Visual C++ implementation of the OpenMP standard is the number of virtual processors, including hyperthreading CPUs.
0 commit comments