hipIpcCloseMemHandle checks the status of IpcDetach
Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682
[ROCm/clr commit: ee4688d37e]
This commit is contained in:
committed by
Satyanvesh Dittakavi
parent
871ac22d36
commit
1e0294968d
@@ -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