SWDEV-356557, SWDEV-356558 - matching cuda return

Change-Id: I3b7d50e07bd437bd23a495439d66940ff30f7f07


[ROCm/clr commit: d7b27989b4]
This commit is contained in:
pghafari
2022-09-29 12:18:07 -04:00
committed by Payam Ghafari
parent c0c8aa5eb6
commit 18808d87a4
+2 -2
View File
@@ -2909,7 +2909,7 @@ hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* dev_ptr) {
if(!device->IpcCreate(dev_ptr, &(ihandle->psize), &(ihandle->ipc_handle), &(ihandle->poffset))) {
LogPrintfError("IPC memory creation failed for memory: 0x%x", dev_ptr);
HIP_RETURN(hipErrorInvalidDevicePointer);
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(hipSuccess);
@@ -2964,7 +2964,7 @@ hipError_t hipIpcCloseMemHandle(void* dev_ptr) {
/* detach the memory */
if (!device->IpcDetach(dev_ptr)){
HIP_RETURN(hipErrorInvalidHandle);
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(hipSuccess);