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

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 25 14:33:20 PDT 2021


grokos added a comment.

We need to keep bases and offsets separate. Sometimes (e.g. in OpenCL) we need to manifest base pointers prior to launching a kernel. Even if you have mapped an object only partially, e.g. `A[N:M]`, although the kernel is expected to access elements starting at address `&A[N]` and beyond, we still need to manifest the base of the array `&A[0]`. That's why we pass args and offsets as two separate entities. What you are trying to do with this patch is to revert https://reviews.llvm.org/D33028.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112490/new/

https://reviews.llvm.org/D112490



More information about the Openmp-commits mailing list