[PATCH] D91879: [Flang][OpenMP 4.5] Add semantic check for OpenMP Schedule Clause - chunk size

Yashaswini Hegde via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 00:34:59 PST 2020


yhegde added inline comments.


================
Comment at: flang/test/Semantics/omp-schedule-teams01.f90:18
+  !ERROR: The value of chunk size in SCHEDULE clause must be the same for all threads.
+  !$omp  do schedule(static, 8)
+  do i = 1,N
----------------
kiranchandramohan wrote:
> I was thinking it is OK to have different chunk_sizes for different worksharing loops. Also, Generally there are implicit barriers after worksharing loops.
> Did you check with a different fortran compiler or a c/c++ compiler?
No error for this test case in gfortran and classic flang. No error to equivalent c++ test case in g++ and clang++ too. It looks like a runtime check. (https://www.openmp.org/wp-content/uploads/openmp-4.5.pdf , page 60)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91879/new/

https://reviews.llvm.org/D91879



More information about the llvm-commits mailing list