SWDEV-294591 - Fix hipEventIpc failure on NV

Remove unnecessary codes

Change-Id: I4248b2cebd3dd156f9d5d427e1897da22fb964ec


[ROCm/hip commit: ec7e25b7e0]
Этот коммит содержится в:
Tao Sang
2021-07-28 21:01:03 -04:00
коммит произвёл Tao Sang
родитель 619bdd8bc2
Коммит 9de024b109
+3 -8
Просмотреть файл
@@ -91,14 +91,9 @@ int main(int argc, char* argv[]) {
HIPCHECK(hipIpcGetEventHandle(&ipc_handle, start));
hipEvent_t ipc_event;
auto ret = hipIpcOpenEventHandle(&ipc_event, ipc_handle);
if (ret == hipErrorInvalidContext) {
// tests/src/ipc/hipMultiProcIpcEvent.cpp is the right sample in different process.
printf("hipIpcOpenEventHandle() should be called in a different process\n");
} else if (ret == hipSuccess) {
// To be removed
}
// hipIpcOpenEventHandle() should be called in a different process
// tests/src/ipc/hipMultiProcIpcEvent.cpp is the right sample in different process
HIPCHECK_API(hipIpcOpenEventHandle(&ipc_event, ipc_handle), hipErrorInvalidContext);
HIPCHECK(hipEventDestroy(start));
HIPCHECK(hipEventDestroy(stop));