From e8262881323d445ac92bc27ced201d94bc44fd45 Mon Sep 17 00:00:00 2001 From: Philip Yang Date: Thu, 29 Jul 2021 14:29:02 -0400 Subject: [PATCH] kfdtest: fix KFDIPCTest on gfx1xxx hsaKmtAllocMemory with mflags.HostAccess=1 will fail on desktop gfx1xxx GPU because it's small bar PCIe. Remove this flag. Child process exit status should use current_test_info, not unit test info. Change-Id: I060f23aa98a42251921d003878e70a409c92a4de Signed-off-by: Philip Yang [ROCm/ROCR-Runtime commit: 413979c3195deba17ba768c23759416d97f3febb] --- projects/rocr-runtime/tests/kfdtest/src/KFDIPCTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDIPCTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDIPCTest.cpp index c4a758f6f1..c18b471307 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDIPCTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDIPCTest.cpp @@ -57,7 +57,7 @@ KFDIPCTest::~KFDIPCTest(void) { * starts the next test while the parent is still active. */ if (m_ChildPid == 0) - exit(::testing::UnitTest::GetInstance()->failed_test_count()); + exit(::testing::UnitTest::GetInstance()->current_test_info()->result()->Failed()); } /* Import shared Local Memory from parent process. Check for the pattern @@ -203,7 +203,6 @@ TEST_F(KFDIPCTest, BasicTest) { /* Create a child process and share the above Local Memory with it */ mflags.ui32.NonPaged = 1; mflags.ui32.CoarseGrain = 1; - mflags.ui32.HostAccess = 1; m_ChildPid = fork(); if (m_ChildPid == 0)