[Openmp-commits] [openmp] r349460 - [Tests] fix non-determinism failure in testcase

Joachim Protze via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 18 00:57:24 PST 2018


Author: jprotze
Date: Tue Dec 18 00:57:23 2018
New Revision: 349460

URL: http://llvm.org/viewvc/llvm-project?rev=349460&view=rev
Log:
[Tests] fix non-determinism failure in testcase

Modified:
    openmp/trunk/runtime/test/ompt/parallel/nested_threadnum.c

Modified: openmp/trunk/runtime/test/ompt/parallel/nested_threadnum.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/nested_threadnum.c?rev=349460&r1=349459&r2=349460&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/nested_threadnum.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/nested_threadnum.c Tue Dec 18 00:57:23 2018
@@ -7,6 +7,7 @@ int main() {
   omp_set_nested(1);
 #pragma omp parallel num_threads(2)
   {
+#pragma omp barrier
 #pragma omp parallel num_threads(2)
     { print_frame(0); }
   }




More information about the Openmp-commits mailing list