From 3cef7a058968f94a6b1c35efb638fe54e197579f Mon Sep 17 00:00:00 2001 From: Pat Truong Date: Thu, 11 Jul 2024 17:21:03 -0400 Subject: [PATCH] Add change to support runlist test on simnowlite flow (#8283) Signed-off-by: Pat Truong --- src/runtime_src/core/common/api/hw_queue.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/runtime_src/core/common/api/hw_queue.cpp b/src/runtime_src/core/common/api/hw_queue.cpp index cc0f53c6a4b..791f9f05e79 100644 --- a/src/runtime_src/core/common/api/hw_queue.cpp +++ b/src/runtime_src/core/common/api/hw_queue.cpp @@ -675,15 +675,18 @@ class kds_device : public hw_queue_impl } void - submit(xrt_core::buffer_handle*) override + submit(xrt_core::buffer_handle* cmd) override { - throw std::runtime_error("kds_device::submit(buffer_handle) not implemented"); + m_device->exec_buf(cmd); } std::cv_status - wait(xrt_core::buffer_handle*, size_t) const override + wait(xrt_core::buffer_handle* cmd, size_t timeout_ms) const override { - throw std::runtime_error("kds_device::wait(buffer_handle) not implemented"); + if (const_cast(this)->exec_wait(timeout_ms) == std::cv_status::timeout) + return std::cv_status::timeout; + + return std::cv_status::no_timeout; } // Poll for command completion