Skip to content

Commit

Permalink
Add change to support runlist test on simnowlite flow (#8283)
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Truong <[email protected]>
  • Loading branch information
ptruong2024 authored Jul 11, 2024
1 parent 80e3488 commit 3cef7a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/runtime_src/core/common/api/hw_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<kds_device *>(this)->exec_wait(timeout_ms) == std::cv_status::timeout)
return std::cv_status::timeout;

return std::cv_status::no_timeout;
}

// Poll for command completion
Expand Down

0 comments on commit 3cef7a0

Please sign in to comment.