Skip to content

Commit 38f44d5

Browse files
author
Colin Robertson
authored
Update 4-environment-variables.md
Match anchor link names to the references in this and other articles.
1 parent 901a043 commit 38f44d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/parallel/openmp/4-environment-variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ksh:
2525
DOS:
2626
`set OMP_SCHEDULE="dynamic"`
2727

28-
## <a name="4.1-OMP_SCHEDULE"></a>4.1 OMP_SCHEDULE
28+
## <a name="41-omp_schedule"></a>4.1 OMP_SCHEDULE
2929

3030
`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*.
3131

@@ -43,7 +43,7 @@ setenv OMP_SCHEDULE "dynamic"
4343
- [for](2-directives.md#241-for-construct) directive
4444
- [parallel for](2-directives.md#251-parallel-for-construct) directive
4545

46-
## <a name="4.2-OMP_NUM_THREADS"></a>4.2 OMP_NUM_THREADS
46+
## <a name="42-omp_num_threads"></a>4.2 OMP_NUM_THREADS
4747

4848
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.
4949

@@ -67,7 +67,7 @@ setenv OMP_NUM_THREADS 16
6767
- [omp_set_num_threads](3-run-time-library-functions.md#311-omp_set_num_threads-function) function
6868
- [omp_set_dynamic](3-run-time-library-functions.md#317-omp_set_dynamic-function) function
6969

70-
## <a name="4.3-OMP_DYNAMIC"></a>4.3 OMP_DYNAMIC
70+
## <a name="43-omp_dynamic"></a>4.3 OMP_DYNAMIC
7171

7272
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`.
7373

@@ -84,7 +84,7 @@ setenv OMP_DYNAMIC TRUE
8484
- [Parallel regions](2-directives.md#23-parallel-construct)
8585
- [omp_set_dynamic](3-run-time-library-functions.md#317-omp_set_dynamic-function) function
8686

87-
## <a name="4.4-OMP_NESTED"></a>4.4 OMP_NESTED
87+
## <a name="44-omp_nested"></a>4.4 OMP_NESTED
8888

8989
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`.
9090

0 commit comments

Comments
 (0)