From 25f3dc305f5d2f564e2f664446518845cdc1f0fb Mon Sep 17 00:00:00 2001 From: Ramesh Errabolu Date: Wed, 24 Mar 2021 21:21:07 -0500 Subject: [PATCH] Override Cpu-Gpu link-weight for Alebaran until a proper fix is available Change-Id: I1fbc38b788f71cc9c9fc62295223286004689bf9 --- runtime/hsa-runtime/core/runtime/amd_topology.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_topology.cpp b/runtime/hsa-runtime/core/runtime/amd_topology.cpp index 2855e33e4e..6b6a308583 100644 --- a/runtime/hsa-runtime/core/runtime/amd_topology.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_topology.cpp @@ -207,7 +207,9 @@ void RegisterLinkInfo(uint32_t node_id, uint32_t num_link) { link_info.atomic_support_64bit = true; link_info.coherent_support = true; if (core::Runtime::runtime_singleton_->flag().patch_xgmi_link_weight()) { - io_link.Weight = 15; + if (io_link.Weight == 0) { + io_link.Weight = 15; + } } break; default: