[Openmp-commits] [PATCH] D84487: [OpenMP] Add more pass-through functions in DeviceTy
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 24 14:53:07 PDT 2020
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/src/omptarget.cpp:848
// Allocate memory for (first-)private array
- TgtPtrBegin = Device.RTL->data_alloc(Device.RTLDeviceID,
- arg_sizes[i], HstPtrBegin);
+ TgtPtrBegin = Device.data_alloc(arg_sizes[i]);
if (!TgtPtrBegin) {
----------------
Please also add `HstPtrBegin` here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84487/new/
https://reviews.llvm.org/D84487
More information about the Openmp-commits
mailing list