[Openmp-commits] [PATCH] D31602: Added support for OpenMP 4.5 simd modifier of the schedule clause of the OpenMP loop construct

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 3 08:16:10 PDT 2017


AndreyChurbanov created this revision.
AndreyChurbanov added a project: OpenMP.
Herald added a subscriber: rengolin.

In addition to schedule(simd:static) inplemented earlier (kmp_sch_static_balanced_chunked = 45) added new support for schedule(simd:guided) and schedule(simd:runtime):

  kmp_sch_guided_simd = 46, /**< guided with chunk adjustment */
  kmp_sch_runtime_simd = 47, /**< runtime with chunk adjustment */

These three schedules cannot be  covered solely by compiler or runtime.  New schedule types introduced so that the runtime library can get needed information from the compiler on the simd length (for runtime schedule) or on the need of chunk size adjustment (for guided schedule).

For simd:runtime the compiler should provide the simd length in chunk parameter (unused for non-simd schedule).

For simd:guided the runtime library should adjust the size of each chunk to be multiple of the given chunk size provided by compiler (which in turn should be multiple of simd length).


Repository:
  rL LLVM

https://reviews.llvm.org/D31602

Files:
  runtime/src/kmp.h
  runtime/src/kmp_dispatch.cpp
  runtime/test/worksharing/for/kmp_sch_simd.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31602.93861.patch
Type: text/x-patch
Size: 22435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170403/474d5840/attachment-0001.bin>


More information about the Openmp-commits mailing list