hipIpcCloseMemHandle checks the status of IpcDetach

Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682


[ROCm/hip commit: c068778062]
Tá an tiomantas seo le fáil i:
Dittakavi Satyanvesh údaraithe agus Satyanvesh Dittakavi tiomanta 2020-05-23 08:47:36 -04:00
1 tuismitheoir 5d530df13d
tiomantas 142f3e859b
1 comhad athraithe
+3 -1
+3 -1
Féach ar an gComhad
@@ -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);
}