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
Copy file name to clipboardExpand all lines: docs/parallel/openmp/4-environment-variables.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ ksh:
25
25
DOS:
26
26
`set OMP_SCHEDULE="dynamic"`
27
27
28
-
## <aname="4.1-OMP_SCHEDULE"></a>4.1 OMP_SCHEDULE
28
+
## <aname="41-omp_schedule"></a>4.1 OMP_SCHEDULE
29
29
30
30
`OMP_SCHEDULE` applies only to `for` and `parallel for` directives that have the schedule type `runtime`. The schedule type and chunk size for all such loops can be set at run time. Set this environment variable to any recognized schedule type and to an optional *chunk_size*.
The `OMP_NUM_THREADS` environment variable sets the default number of threads to use during execution. `OMP_NUM_THREADS` is ignored if that number is explicitly changed by calling the `omp_set_num_threads` library routine. It's also ignored if there's an explicit `num_threads` clause on a `parallel` directive.
49
49
@@ -67,7 +67,7 @@ setenv OMP_NUM_THREADS 16
67
67
-[omp_set_num_threads](3-run-time-library-functions.md#311-omp_set_num_threads-function) function
68
68
-[omp_set_dynamic](3-run-time-library-functions.md#317-omp_set_dynamic-function) function
69
69
70
-
## <aname="4.3-OMP_DYNAMIC"></a>4.3 OMP_DYNAMIC
70
+
## <aname="43-omp_dynamic"></a>4.3 OMP_DYNAMIC
71
71
72
72
The `OMP_DYNAMIC` environment variable enables or disables dynamic adjustment of the number of threads available for the execution of parallel regions. `OMP_DYNAMIC` is ignored when dynamic adjustment is explicitly enabled or disabled by calling the `omp_set_dynamic` library routine. Its value must be `TRUE` or `FALSE`.
-[omp_set_dynamic](3-run-time-library-functions.md#317-omp_set_dynamic-function) function
86
86
87
-
## <aname="4.4-OMP_NESTED"></a>4.4 OMP_NESTED
87
+
## <aname="44-omp_nested"></a>4.4 OMP_NESTED
88
88
89
89
The `OMP_NESTED` environment variable enables or disables nested parallelism unless nested parallelism is enabled or disabled by calling the `omp_set_nested` library routine. If `OMP_NESTED` is set to `TRUE`, nested parallelism is enabled. If `OMP_NESTED` is set to `FALSE`, nested parallelism is disabled. The default value is `FALSE`.
0 commit comments