From 85a11c729c20e43dff78ffaa0a6a24f10403ee29 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Sat, 28 Dec 2024 09:28:16 +0800 Subject: [PATCH] rocr/dtif: disable interrupt signal for DTIF backend Signed-off-by: Aaron Liu Reviewed-by: David Yat Sin [ROCm/ROCR-Runtime commit: 8c1b1201b73b599b2e16a0878aa0c8daf71c51e9] --- .../runtime/hsa-runtime/core/runtime/amd_topology.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 58a882370f..becb89f1c2 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 @@ -267,6 +267,10 @@ void SurfaceGpuList(std::vector& gpu_list, bool xnack_mode, bool enable hsa_status_t ret = gpu_driver.GetNodeProperties(node_prop, gpu_list[idx]); assert(ret == HSA_STATUS_SUCCESS && "Error in getting Node Properties"); + // disable interrupt signal for DTIF platform + if (core::Runtime::runtime_singleton_->flag().enable_dtif()) + core::g_use_interrupt_wait = false; + // Instantiate a Gpu device. The IO links // of this node have already been registered assert((node_prop.NumFComputeCores != 0) && "Improper node used for GPU device discovery.");