[Openmp-commits] [PATCH] D45327: Introduce GOMP_taskloop API

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Apr 5 10:11:56 PDT 2018


jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
jlpeyton added a project: OpenMP.

This patch introduces GOMP_taskloop to our API.  It adds GOMP_4.5 to our
version symbols.  Being a wrapper around __kmpc_taskloop, the function
creates a task with the loop bounds properly nested in the shareds so that
the GOMP task thunk will work properly.  Also, the firstprivate copy constructors
are properly handled using the __kmp_gomp_task_dup() auxiliary function.

Currently, only linear spawning of tasks is supported for the GOMP_taskloop interface.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D45327

Files:
  runtime/src/exports_so.txt
  runtime/src/kmp.h
  runtime/src/kmp_ftn_os.h
  runtime/src/kmp_gsupport.cpp
  runtime/src/kmp_os.h
  runtime/src/kmp_sched.cpp
  runtime/src/kmp_tasking.cpp
  runtime/test/tasking/omp_taskloop_grainsize.c
  runtime/test/tasking/omp_taskloop_num_tasks.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45327.141177.patch
Type: text/x-patch
Size: 18404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180405/65795203/attachment.bin>


More information about the Openmp-commits mailing list