[Openmp-commits] [openmp] r252952 - Fix for ittnotify loop reporting

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 12 13:26:24 PST 2015


Author: jlpeyton
Date: Thu Nov 12 15:26:22 2015
New Revision: 252952

URL: http://llvm.org/viewvc/llvm-project?rev=252952&view=rev
Log:
Fix for ittnotify loop reporting

Fix ittnotify loop metadata reporting for schedule(runtime) and
chunked schedule set via OMP_SCHEDULE. The bug was that chunk=1 
reported always.

Modified:
    openmp/trunk/runtime/src/kmp_dispatch.cpp

Modified: openmp/trunk/runtime/src/kmp_dispatch.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_dispatch.cpp?rev=252952&r1=252951&r2=252952&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_dispatch.cpp (original)
+++ openmp/trunk/runtime/src/kmp_dispatch.cpp Thu Nov 12 15:26:22 2015
@@ -685,7 +685,9 @@ __kmp_dispatch_init(
             }
             // Use the chunk size specified by OMP_SCHEDULE (or default if not specified)
             chunk = team -> t.t_sched.chunk;
-
+#if USE_ITT_BUILD
+            cur_chunk = chunk;
+#endif
             #ifdef KMP_DEBUG
             {
                 const char * buff;




More information about the Openmp-commits mailing list