[Openmp-commits] [PATCH] D32033: Make test/parallel/omp_nested.c not use so many threads
Hal Finkel via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jun 26 20:04:37 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL306357: Make test/parallel/omp_nested.c not use so many threads (authored by hfinkel).
Changed prior to commit:
https://reviews.llvm.org/D32033?vs=95162&id=104081#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32033
Files:
openmp/trunk/runtime/test/parallel/omp_nested.c
Index: openmp/trunk/runtime/test/parallel/omp_nested.c
===================================================================
--- openmp/trunk/runtime/test/parallel/omp_nested.c
+++ openmp/trunk/runtime/test/parallel/omp_nested.c
@@ -9,6 +9,11 @@
*/
int test_omp_nested()
{
+#ifdef _OPENMP
+ if (omp_get_max_threads() > 4)
+ omp_set_num_threads(4);
+#endif
+
int counter = 0;
#ifdef _OPENMP
omp_set_nested(1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32033.104081.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170627/5ea0845a/attachment.bin>
More information about the Openmp-commits
mailing list