From 7a558e239801967c402046fe38f4e721da370a7d Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 26 Sep 2022 07:39:26 +0530 Subject: [PATCH] SWDEV-350985 - Address hipIpcEventHandle test failure on MI200 (#2926) Change-Id: Ie9a278caccbcc98bfa99968bc8ad974f83b2ee98 --- catch/multiproc/hipIpcEventHandle.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/multiproc/hipIpcEventHandle.cc b/catch/multiproc/hipIpcEventHandle.cc index 484915f1db..4a4be2eb5a 100644 --- a/catch/multiproc/hipIpcEventHandle.cc +++ b/catch/multiproc/hipIpcEventHandle.cc @@ -44,7 +44,7 @@ Negative/Argument Validation: #define BUF_SIZE 4096 -#define MAX_DEVICES 8 +#define MAX_DEVICES 16 typedef struct ipcEventInfo { @@ -250,7 +250,7 @@ TEST_CASE("Unit_hipIpcEventHandle_Functional") { return; } - g_processCnt = shmDevices->count; + g_processCnt = (shmDevices->count > MAX_DEVICES) ? MAX_DEVICES : shmDevices->count; // Barrier is used to synchronize processes created. g_Barrier = reinterpret_cast (mmap(NULL, sizeof(*g_Barrier),