[Openmp-commits] [PATCH] D112490: [OpenMP][Offloading] Calculate offset in libomptarget

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 25 14:11:46 PDT 2021


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, grokos, JonChesterfield.
Herald added subscribers: kerbowa, guansong, yaxunl, nhaehnle, jvesely.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

When invoking a kernel function, we pass arguments and offsets to plugin for now.
In each plugin, it recalculates the real argument by adding offsets to arguments.
We can actually move this part to `libomptarget`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112490

Files:
  openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
  openmp/libomptarget/plugins/cuda/src/rtl.cpp
  openmp/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp
  openmp/libomptarget/plugins/remote/src/Client.cpp
  openmp/libomptarget/src/omptarget.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112490.382122.patch
Type: text/x-patch
Size: 4587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211025/97408def/attachment.bin>


More information about the Openmp-commits mailing list