[Openmp-commits] [openmp] 3ab7912 - [OpenMP] Add notifyDataUnmapped back in disassociatePtr
Ye Luo via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 23 06:57:55 PDT 2023
Author: Ye Luo
Date: 2023-03-23T08:57:23-05:00
New Revision: 3ab79124db5e4e1be0b58c4fe43ff01e6fdb3060
URL: https://github.com/llvm/llvm-project/commit/3ab79124db5e4e1be0b58c4fe43ff01e6fdb3060
DIFF: https://github.com/llvm/llvm-project/commit/3ab79124db5e4e1be0b58c4fe43ff01e6fdb3060.diff
LOG: [OpenMP] Add notifyDataUnmapped back in disassociatePtr
Fix regression introduced by https://reviews.llvm.org/D123446
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D146689
Added:
Modified:
openmp/libomptarget/src/device.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/src/device.cpp b/openmp/libomptarget/src/device.cpp
index 09c8e808db463..22ab7436f75b5 100644
--- a/openmp/libomptarget/src/device.cpp
+++ b/openmp/libomptarget/src/device.cpp
@@ -134,7 +134,7 @@ int DeviceTy::disassociatePtr(void *HstPtrBegin) {
if (Event)
destroyEvent(Event);
HDTTMap->erase(It);
- return OFFLOAD_SUCCESS;
+ return notifyDataUnmapped(HstPtrBegin);
}
REPORT("Trying to disassociate a pointer which was not mapped via "
More information about the Openmp-commits
mailing list