[Openmp-commits] [PATCH] D134983: [OpenMP] Ignore schedule modifier in static scheduling

Hansang Bae via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 30 12:25:57 PDT 2022


hbae created this revision.
hbae added reviewers: tlwilmar, jlpeyton, Nawrin.
hbae added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
hbae requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

The modifier bits in the schedule type is not used/supported in the
static scheduler, so it should be ignored.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134983

Files:
  openmp/runtime/src/kmp_sched.cpp


Index: openmp/runtime/src/kmp_sched.cpp
===================================================================
--- openmp/runtime/src/kmp_sched.cpp
+++ openmp/runtime/src/kmp_sched.cpp
@@ -83,6 +83,9 @@
   KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static);
   KMP_PUSH_PARTITIONED_TIMER(OMP_loop_static_scheduling);
 
+  // Clear monotonic/nonmonotonic bits (ignore it)
+  schedtype = SCHEDULE_WITHOUT_MODIFIERS(schedtype);
+
   typedef typename traits_t<T>::unsigned_t UT;
   typedef typename traits_t<T>::signed_t ST;
   /*  this all has to be changed back to TID and such.. */


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134983.464361.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220930/bc286bf5/attachment.bin>


More information about the Openmp-commits mailing list