From a6afaec8929d10343ab0bfa54eafbf1349460a6c Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Fri, 7 Jun 2024 13:39:54 +0100 Subject: [PATCH] SWDEV-466622 - Added fix for Unit_hipMallocArray_happy test Change-Id: I9b647aff69ba92f97b2ca17eac49d58ae63fa858 [ROCm/hip-tests commit: 3acc6a402037abf4c3aa457b5461d794b4586389] --- .../hip-tests/catch/hipTestMain/config/config_amd_linux | 2 -- projects/hip-tests/catch/unit/memory/hipArrayCommon.hh | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux index a9b3731491..d75a3358b1 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -1390,8 +1390,6 @@ "Unit_hipMallocManaged_HostDeviceConcurrent", "Unit_hipMallocManaged_MultiThread", "Unit_hipMemcpyAsync_H2H-H2D-D2H-H2PinMem - double", - "Unit_hipMallocArray_happy - int4", - "Unit_hipMallocArray_happy - float4", "=== SWDEV-437982:Below test failed in stress test on 08/12/23 ===", "Unit_hipDeviceGetPCIBusId_Functional", "Unit_hipDrvMemcpy_Functional", diff --git a/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh b/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh index 4d41700605..606435a088 100644 --- a/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh +++ b/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh @@ -58,9 +58,11 @@ template void checkDataIsAscending(const std::vector& hostData) size_t i = 0; for (; i < hostData.size(); ++i) { allMatch = allMatch && hostData[i] == static_cast(i); - if (!allMatch) break; + if (!allMatch) { + INFO("hostData[" << i << "] == " << static_cast(hostData[i])); + break; + } } - INFO("hostData[" << i << "] == " << static_cast(hostData[i])); REQUIRE(allMatch); }