summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2019-02-19 18:51:11 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2019-02-19 18:51:11 +0000
commit154ac075cd04520a2b84c3503dd4590d90e233db (patch)
tree485ac817b58f9aaf3f5096c9e829971f778a3ce0 /openmp/runtime/test
parent4fe5271fa0d2a88333773e5d75b5fb34442e9f80 (diff)
downloadbcm5719-llvm-154ac075cd04520a2b84c3503dd4590d90e233db.tar.gz
bcm5719-llvm-154ac075cd04520a2b84c3503dd4590d90e233db.zip
[OpenMP 5.0] Add omp_get_supported_active_levels()
This patch adds the new 5.0 API function omp_get_supported_active_levels(). Patch by Terry Wilmarth Differential Revision: https://reviews.llvm.org/D58211 llvm-svn: 354368
Diffstat (limited to 'openmp/runtime/test')
-rw-r--r--openmp/runtime/test/parallel/omp_nested.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/runtime/test/parallel/omp_nested.c b/openmp/runtime/test/parallel/omp_nested.c
index d2d5b085ba7..b5a3fbd6fa8 100644
--- a/openmp/runtime/test/parallel/omp_nested.c
+++ b/openmp/runtime/test/parallel/omp_nested.c
@@ -19,6 +19,7 @@ int test_omp_nested()
int counter = 0;
#ifdef _OPENMP
omp_set_nested(1);
+ omp_set_max_active_levels(omp_get_supported_active_levels());
#endif
#pragma omp parallel shared(counter)
OpenPOWER on IntegriCloud