SWDEV-555178 - Fix and enable Unit_hipMemVmm_Uncached (#1090)

This commit is contained in:
marandje
2025-09-24 15:51:22 +02:00
committato da GitHub
parent 05315c5bb2
commit a90f28cd5c
2 ha cambiato i file con 3 aggiunte e 4 eliminazioni
@@ -989,7 +989,6 @@
"Unit_hipGraphAddMemAllocNode_Negative_Free_Alloc_Memory_Again",
"====================================================",
"==================SWDEV-555665==================================",
"Unit_hipMemVmm_Uncached",
"Unit_TexObjectCreate_TypePitch2D",
"Unit_hipTexRefSetGetMipmappedArray",
"Unit_test_generic_target_only_in_regular_fatbin",
@@ -118,9 +118,9 @@ TEST_CASE("Unit_hipMemVmm_Uncached") {
HIP_CHECK(hipMemGetAllocationGranularity(&granularity, &memAllocationProp,
hipMemAllocationGranularityRecommended));
size_t size = 4 * 1024;
size_t size = granularity * 4;
void* reservedAddress{nullptr};
HIP_CHECK(hipMemAddressReserve(&reservedAddress, size, granularity, nullptr, 0));
HIP_CHECK(hipMemAddressReserve(&reservedAddress, size, 0, nullptr, 0));
hipMemGenericAllocationHandle_t gaHandle{nullptr};
HIP_CHECK(hipMemCreate(&gaHandle, size, &memAllocationProp, 0));
@@ -149,4 +149,4 @@ TEST_CASE("Unit_hipMemVmm_Uncached") {
HIP_CHECK(hipMemRelease(gaHandle));
HIP_CHECK(hipMemAddressFree(reservedAddress, size));
}
#endif
#endif