[Openmp-commits] [PATCH] D117997: [libomptarget] Lookup by base address when begin address is not mapped.

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 23 10:44:20 PST 2022


grokos created this revision.
grokos added reviewers: tianshilei1992, ABataev, jdoerfert, JonChesterfield, ye-luo, jhuber6.
grokos added a project: OpenMP.
grokos requested review of this revision.
Herald added a subscriber: sstefan1.

When an array is mapped starting from an offset, its base address does not fall within the mapped range. If the same array is later captured implicitly in a target region or we use a `use_device_ptr` clause, the array appears as unmapped. This leads to otherwise legal OpenMP programs failing to execute correctly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117997

Files:
  openmp/libomptarget/include/device.h
  openmp/libomptarget/src/api.cpp
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/test/mapping/array_section_implicit_capture.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117997.402355.patch
Type: text/x-patch
Size: 10107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220123/2579ffd1/attachment.bin>


More information about the Openmp-commits mailing list