[PATCH] D102008: [OpenMP]Add support for workshare loop modifier in lowering
Mats Petersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 7 03:42:22 PDT 2021
Leporacanthicus added a comment.
Patch doesn't apply because it is relying on my previous patch. Doh!
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:1436-1442
+ if (SchedType == omp::OMPScheduleType::DynamicChunked ||
+ SchedType == omp::OMPScheduleType::GuidedChunked) {
+ DynamicSchedType |= omp::OMPScheduleType::ModifierNonmonotonic;
+ } else {
+ DynamicSchedType |= omp::OMPScheduleType::ModifierMonotonic;
+ }
+ }
----------------
@Meinersbur & @jdoerfert
Does this section make sense: use non-monotonic as default for guided and dynamic, and monotonic for Auto and Runtime? From what I can tell, this is what Clang does, and the Fortran compiler complains if I try to use non-monotonic with Auto and Runtime.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102008/new/
https://reviews.llvm.org/D102008
More information about the llvm-commits
mailing list