From 8423772acb89aa23662a1c6694e17a960a7c3cec Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Tue, 6 Feb 2024 14:55:16 +0000 Subject: [PATCH] Disable extended-scope memory on gfx120x Do not allow extended-scope fine-grain memory on gfx120x devices. Change-Id: I1e6e6c1860de00160cca9d8137b129c7e32c0526 Signed-off-by: Chris Freehill [ROCm/ROCR-Runtime commit: 7dd90f83615a38754d71a11f1110a69504942463] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 77ec0362dd..05ac39ef7d 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -469,8 +469,10 @@ void GpuAgent::InitRegionList() { regions_.push_back(region); if (region->IsLocalMemory()) { - regions_.push_back( - new MemoryRegion(false, false, false, true, true, this, mem_props[mem_idx])); + // Extended Fine-Grain memory + if (!(isa_->GetMajorVersion() == 12 && isa_->GetMinorVersion() == 0)) + regions_.push_back( + new MemoryRegion(false, false, false, true, true, this, mem_props[mem_idx])); // Expose VRAM as uncached/fine grain over PCIe (if enabled) or XGMI. bool user_visible = (properties_.HiveID != 0) ||