From 29fa097a826830ed71cf71fef2aad260b2774ed3 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 [ROCm/ROCR-Runtime commit: 25f3dc305f5d2f564e2f664446518845cdc1f0fb] --- .../runtime/hsa-runtime/core/runtime/amd_topology.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp index 2855e33e4e..6b6a308583 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp +++ b/projects/rocr-runtime/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: