From 89e5075ce0908d5503aa59fcfd5e6ce8946794c3 Mon Sep 17 00:00:00 2001 From: Flora Cui Date: Thu, 15 May 2025 17:07:31 +0800 Subject: [PATCH] rocr: try defaultSignal for intercept_queue if interrupt is not supported Signed-off-by: Flora Cui [ROCm/ROCR-Runtime commit: 8cf4b7fc056abe11bb9bd562418e48476cc784cc] --- .../runtime/hsa-runtime/core/runtime/intercept_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/intercept_queue.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/intercept_queue.cpp index 79dde81fdb..4f4a44bf82 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/intercept_queue.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/intercept_queue.cpp @@ -136,7 +136,7 @@ InterceptQueue::InterceptQueue(std::unique_ptr queue) // Match the queue's signal ABI block to async_doorbell_'s // This allows us to use the queue's signal ABI block from devices to trigger async_doorbell while // host side use jumps directly to the queue's signal implementation. - if (core::Runtime::runtime_singleton_->flag().enable_dtif()) + if (!core::g_use_interrupt_wait) async_doorbell_ = new DefaultSignal(DOORBELL_MAX); else async_doorbell_ = new InterruptSignal(DOORBELL_MAX);