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.|
[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.|
Copy file name to clipboardExpand all lines: docs/parallel/openmp/reference/openmp-environment-variables.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ Provides links to environment variables used in the OpenMP API.
18
18
19
19
The Visual C++ implementation of the OpenMP standard includes the following environment variables. These environment variables are read at program startup and modifications to their values are ignored at runtime (for example, using [_putenv, _wputenv](../../../c-runtime-library/reference/putenv-wputenv.md)).
[OMP_DYNAMIC](#omp-dynamic) | Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.
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](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).
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.
21
+
|Environment variable|Description|
22
+
|--------------------|-----------|
23
+
|[OMP_DYNAMIC](#omp-dynamic)|Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.|
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](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).|
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.|
0 commit comments