SWDEV - 237467 - Return proper hip error codes incase of ROCclr IPC API failures.

Change-Id: I2cc8da543f70bb3d8b82520fa9b2f509d20ce3c0


[ROCm/clr commit: 6bc01b31d6]
Этот коммит содержится в:
kjayapra-amd
2020-05-22 18:06:37 -04:00
коммит произвёл Karthik Jayaprakash
родитель 1e0294968d
Коммит 76dc2e3c9b
+4 -1
Просмотреть файл
@@ -1962,7 +1962,10 @@ hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* dev_ptr) {
/* Create an handle for IPC. Store the memory size inside the handle */
ihandle = reinterpret_cast<ihipIpcMemHandle_t *>(handle);
dev_mem_obj->IpcCreate(offset, &(ihandle->psize), &(ihandle->ipc_handle));
if(!dev_mem_obj->IpcCreate(offset, &(ihandle->psize), &(ihandle->ipc_handle))) {
DevLogPrintfError("IPC memory creation failed for memory: 0x%x", dev_ptr);
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(hipSuccess);
}