[Openmp-commits] [openmp] c24da72 - [OpenMP] Change monotonicity of dynamic schedule

Nawrin Sultana via Openmp-commits openmp-commits at lists.llvm.org
Tue Sep 7 06:21:22 PDT 2021


Author: Nawrin Sultana
Date: 2021-09-07T08:18:46-05:00
New Revision: c24da72fa434c074782c92bf17ac1e5504f67507

URL: https://github.com/llvm/llvm-project/commit/c24da72fa434c074782c92bf17ac1e5504f67507
DIFF: https://github.com/llvm/llvm-project/commit/c24da72fa434c074782c92bf17ac1e5504f67507.diff

LOG: [OpenMP] Change monotonicity of dynamic schedule

This patch changes the default monotonicity of dynamic schedule from
monotonic to non-monotonic when no modifier is specified.

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

Added: 
    

Modified: 
    openmp/runtime/src/kmp_dispatch.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_dispatch.cpp b/openmp/runtime/src/kmp_dispatch.cpp
index 0a75f8a54f595..1aaffc76909a4 100644
--- a/openmp/runtime/src/kmp_dispatch.cpp
+++ b/openmp/runtime/src/kmp_dispatch.cpp
@@ -72,8 +72,8 @@ void __kmp_dispatch_dxo_error(int *gtid_ref, int *cid_ref, ident_t *loc_ref) {
 static inline int __kmp_get_monotonicity(ident_t *loc, enum sched_type schedule,
                                          bool use_hier = false) {
   // Pick up the nonmonotonic/monotonic bits from the scheduling type
-  // TODO: make nonmonotonic when static_steal is fixed
-  int monotonicity = SCHEDULE_MONOTONIC;
+  // Nonmonotonic as default for dynamic schedule when no modifier is specified
+  int monotonicity = SCHEDULE_NONMONOTONIC;
 
   // Let default be monotonic for executables
   // compiled with OpenMP* 4.5 or less compilers


        


More information about the Openmp-commits mailing list