[Openmp-commits] [PATCH] D51107: [LIBOMPTARGET] Add support for mapping of lambda captures.
Ravi Narayanaswamy via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Aug 23 09:47:54 PDT 2018
RaviNarayanaswamy added inline comments.
================
Comment at: libomptarget/src/omptarget.cpp:623
+ uint64_t Delta = (uint64_t)HstPtrBegin - (uint64_t)HstPtrBase;
+ void *TgtPtrBegin = (void *)((uintptr_t)TgtPtrBase + Delta);
+ void *Pointer_TgtPtrBegin = Device.getTgtPtrBegin(
----------------
We should not be doing target arithmetic in omptarget.cpp. The target pointer can be an opaque object for some implementation.
Yes we should clean up code in other places which do this.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D51107
More information about the Openmp-commits
mailing list