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 ced9a775a6..4bc7f10b29 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 @@ -491,16 +491,17 @@ void GpuAgent::InitRegionList() { regions_.push_back(region); if (region->IsLocalMemory()) { + // 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) || core::Runtime::runtime_singleton_->flag().fine_grain_pcie(); regions_.push_back(new MemoryRegion(true, false, false, false, user_visible, this, mem_props[mem_idx])); - - // Extended Fine-Grain memory - regions_.push_back(new MemoryRegion(false, false, false, true, user_visible, this, - mem_props[mem_idx])); } break; }