[Openmp-commits] [PATCH] D82245: [libomptarget] Add support for target update non-contiguous

Chi Chun Chen via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jun 19 15:14:48 PDT 2020


cchen created this revision.
cchen added a reviewer: ABataev.
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.

This patch is the runtime support for https://reviews.llvm.org/D79972.

In order not to modify the tgt_target_data_update information but still be
able to pass the extra information for non-contiguous map item (offset,
count, and stride for each dimension), this patch overload arg when
the maptype is set as OMP_TGT_MAPTYPE_DESCRIPTOR. The origin arg is for
passing the pointer information, however, the overloaded arg is an
array of descriptor_dim:

  struct descriptor_dim {
    int64_t offset;
    int64_t count;
    int64_t stride
  };

and the array size is the dimension size. In addition, since we
have count and stride information in descriptor_dim, we can replace/overload the
arg_size parameter by using dimension size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82245

Files:
  openmp/libomptarget/include/omptarget.h
  openmp/libomptarget/src/omptarget.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82245.272198.patch
Type: text/x-patch
Size: 10255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200619/64429b78/attachment.bin>


More information about the Openmp-commits mailing list