Skip to content

Commit 8f84aa2

Browse files
author
mikeblome
committed
fix for GH issue997
1 parent ee3d2f5 commit 8f84aa2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/parallel/openmp/3-run-time-library-functions.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "3. Run-time library functions"
3-
ms.date: "01/17/2019"
3+
ms.date: "05/09/2019"
44
ms.assetid: b226e512-6822-4cbe-a2ca-74cc2bb7e880
55
---
66
# 3. Run-time library functions
@@ -159,6 +159,13 @@ A call to `omp_set_dynamic` has precedence over the `OMP_DYNAMIC` environment va
159159
160160
The default for the dynamic adjustment of threads is implementation-defined. As a result, user codes that depend on a specific number of threads for correct execution should explicitly disable dynamic threads. Implementations aren't required to provide the ability to dynamically adjust the number of threads, but they're required to provide the interface to support portability across all platforms.
161161
162+
#### Microsoft specific
163+
164+
The current support of `omp_get_dynamic` and `omp_set_dynamic` is as follows:
165+
166+
- A zero-valued input parameter disables multi-threading and nesting.
167+
- A non-zero input parameter means to use the current number of threads. The current number of threads can be the default value or can be user-defined by calling `omp_set_num_threads` or by setting an environment variable.
168+
162169
#### Cross-references
163170
164171
- [omp_get_num_threads](#312-omp_get_num_threads-function)
@@ -176,6 +183,14 @@ int omp_get_dynamic(void);
176183

177184
If the implementation doesn't implement dynamic adjustment of the number of threads, this function always returns 0.
178185

186+
187+
#### Microsoft specific
188+
189+
The current support of `omp_get_dynamic` and `omp_set_dynamic` is as follows:
190+
191+
- A zero-valued input parameter disables multi-threading and nesting.
192+
- A non-zero input parameter means to use the current number of threads. The current number of threads can be the default value or can be user-defined by calling `omp_set_num_threads` or by setting an environment variable.
193+
179194
#### Cross-references
180195

181196
- For a description of dynamic thread adjustment, see [omp_set_dynamic](#317-omp_set_dynamic-function).

0 commit comments

Comments
 (0)