projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5193c4a
)
[OpenMP] Add notifyDataUnmapped back in disassociatePtr
author
Ye Luo
<yeluo@anl.gov>
Thu, 23 Mar 2023 13:56:47 +0000
(08:56 -0500)
committer
Ye Luo
<yeluo@anl.gov>
Thu, 23 Mar 2023 13:57:23 +0000
(08:57 -0500)
Fix regression introduced by https://reviews.llvm.org/D123446
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D146689
openmp/libomptarget/src/device.cpp
patch
|
blob
|
history
diff --git
a/openmp/libomptarget/src/device.cpp
b/openmp/libomptarget/src/device.cpp
index
09c8e80
..
22ab743
100644
(file)
--- 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 "