SWDEV-356557, SWDEV-356558 - matching cuda return

Change-Id: I3b7d50e07bd437bd23a495439d66940ff30f7f07
Этот коммит содержится в:
pghafari authored and Payam Ghafari committed 2022-10-19 09:17:28 -04:00
1 родитель 1c68c74bb7
Коммит d7b27989b4
1 file changed
+2 -2
+2 -2
Просмотреть файл
@@ -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);