[Openmp-commits] [PATCH] D141227: [OpenMP][libomptarget] Implement memory lock/unlock API in NextGen plugins
Kevin Sala Penadés via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Jan 8 14:50:26 PST 2023
kevinsala marked 5 inline comments as done.
kevinsala added inline comments.
================
Comment at: openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp:1846
AMDGPUStreamTy &Stream = getStream(AsyncInfoWrapper);
- return Stream.pushPinnedMemoryCopyAsync(HstPtr, TgtPtr, Size);
+ return Stream.pushPinnedMemoryCopyAsync(const_cast<void *>(PinnedPtr), TgtPtr, Size);
}
----------------
jdoerfert wrote:
> It's not const. Change `isHostPinnedBuffer` to `getHostPinnedBuffer` and assign it in the conditional.
Done, however, I renamed it to `getDevicePtrFromPinnedBuffer()` since it returns the device pointer.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141227/new/
https://reviews.llvm.org/D141227
More information about the Openmp-commits
mailing list