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
[ROCm/hip-tests commit: 168312b97f]
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user