From 168312b97fec500366b4d13a6fbc6fef6596e209 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Fri, 7 Mar 2025 18:04:22 -0500 Subject: [PATCH] SWDEV-497841 - Change the validation condition The test wrongly assumed that the reserved memory should always be equal to the allocation size. However, suballocations are possible Change-Id: I1d1f3c3cdb231188f8b35ed64ffe4e2a3a2f16f9 --- catch/unit/memory/hipGetProcAddressMemoryApis.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/catch/unit/memory/hipGetProcAddressMemoryApis.cc b/catch/unit/memory/hipGetProcAddressMemoryApis.cc index cb29ea6b24..e98a86b6f3 100644 --- a/catch/unit/memory/hipGetProcAddressMemoryApis.cc +++ b/catch/unit/memory/hipGetProcAddressMemoryApis.cc @@ -6484,22 +6484,22 @@ TEST_CASE("Unit_hipGetProcAddress_MemoryApisStreamOrderedMemory") { uint64_t value = 0; HIP_CHECK(dyn_hipMemPoolGetAttribute_ptr(mem_pool, hipMemPoolAttrReservedMemCurrent, &value)); - REQUIRE(value == 1024); + REQUIRE(value >= 1024); value = 0; HIP_CHECK(dyn_hipMemPoolGetAttribute_ptr(mem_pool, hipMemPoolAttrReservedMemHigh, &value)); - REQUIRE(value == 1024); + REQUIRE(value >= 1024); value = 0; HIP_CHECK(dyn_hipMemPoolGetAttribute_ptr(mem_pool, hipMemPoolAttrUsedMemCurrent, &value)); - REQUIRE(value == 1024); + REQUIRE(value >= 1024); value = 0; HIP_CHECK(dyn_hipMemPoolGetAttribute_ptr(mem_pool, hipMemPoolAttrUsedMemHigh, &value)); - REQUIRE(value == 1024); + REQUIRE(value >= 1024); HIP_CHECK(hipFreeAsync(dPtr1, stream));