hipIpcCloseMemHandle checks the status of IpcDetach
Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682
This commit is contained in:
committed by
Satyanvesh Dittakavi
parent
01dae52d64
commit
c068778062
@@ -2023,7 +2023,9 @@ hipError_t hipIpcCloseMemHandle(void* dev_ptr) {
|
||||
amd::MemObjMap::RemoveMemObj(amd_mem_obj);
|
||||
|
||||
/* detach the memory */
|
||||
device->IpcDetach(*amd_mem_obj);
|
||||
if (!device->IpcDetach(*amd_mem_obj)){
|
||||
HIP_RETURN(hipErrorInvalidHandle);
|
||||
}
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user