From e539c8dce205c1a2d37ad55ae0591edfbffa6489 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Wed, 24 Apr 2024 00:07:13 +0000 Subject: [PATCH] Remove assert for physical vs virtual memory size On systems with more than 1 TB of memory per NUMA region, this triggers unnecessary errors. Change-Id: I1bc7f209b9c1739b516c9f6b0acf434488ac7b8d --- runtime/hsa-runtime/core/runtime/amd_memory_region.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp b/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp index 213484c83a..2139ca0a67 100644 --- a/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp @@ -164,7 +164,6 @@ MemoryRegion::MemoryRegion(bool fine_grain, bool kernarg, bool full_profile, } assert(GetVirtualSize() != 0); - assert(GetPhysicalSize() <= GetVirtualSize()); assert(IsMultipleOf(max_single_alloc_size_, kPageSize_)); }