[Openmp-commits] [openmp] r298362 - Stride in distribute parallel for loops with no chunk size.

Andrey Churbanov via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 21 05:17:23 PDT 2017


Author: achurbanov
Date: Tue Mar 21 07:17:22 2017
New Revision: 298362

URL: http://llvm.org/viewvc/llvm-project?rev=298362&view=rev
Log:
Stride in distribute parallel for loops with no chunk size.

Patch by George Rokos.

Differential Revision: https://reviews.llvm.org/D24486

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

Modified: openmp/trunk/runtime/src/kmp_sched.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_sched.cpp?rev=298362&r1=298361&r2=298362&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_sched.cpp (original)
+++ openmp/trunk/runtime/src/kmp_sched.cpp Tue Mar 21 07:17:22 2017
@@ -281,6 +281,7 @@ __kmp_for_static_init(
                     }
                 }
             }
+            *pstride = trip_count;
             break;
         }
     case kmp_sch_static_chunked:




More information about the Openmp-commits mailing list