[Openmp-commits] [PATCH] D109026: [OpenMP] Change monotonicity of dynamic schedule
Nawrin Sultana via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Aug 31 14:43:21 PDT 2021
Nawrin created this revision.
Nawrin added a reviewer: AndreyChurbanov.
Nawrin added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Nawrin requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
This patch changes the default monotonicity of dynamic schedule from monotonic to non-monotonic when no modifier is specifier.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109026
Files:
openmp/runtime/src/kmp_dispatch.cpp
Index: openmp/runtime/src/kmp_dispatch.cpp
===================================================================
--- openmp/runtime/src/kmp_dispatch.cpp
+++ openmp/runtime/src/kmp_dispatch.cpp
@@ -72,8 +72,8 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109026.369799.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210831/3dfe03d6/attachment.bin>
More information about the Openmp-commits
mailing list