Repository navigation
[HAL] Add runtime support for command_buffer.flush_buffer - #24962
l0r3m1psum wants to merge 2 commits into
Conversation
A new hal.command_buffer.flush_buffer operation has been introduced together with some tests and transformations for it. Lowering to VM has also bee implemented but the operation is not exported so some test for the VM fail. Signed-off-by: Diego Bellani <[email protected]>
…L driver Now a command_buffer.flush_buffer is exported by the HAL so that the VM can call this funciton and tests can succed once again. Add a CTS flush_buffer_test run in direct and indirect modes on all drivers, and cover recording/replay in the replay execute test. Signed-off-by: Diego Bellani <[email protected]>
|
Hello @l0r3m1psum 👋 Thank you for submitting a Pull Request to IREE! It looks like this is your first one. We have one ask, and you can also find some general tips below. Action required: acknowledge IREE project policiesIREE is a Linux Foundation project. All participants are expected to follow the LF Projects Code of Conduct. All contributions to IREE must follow our IREE AI Tool Use Policy. In particular:
We kindly ask you to reply to this message and confirm that you understand and accept the cited policies, particularly the AI Tool Use Policy. General guidanceOur general Contributing guide contains information and links to detailed guides on code quality, testing, commit summaries and our CI system. A common point for new PRs: if a DCO signing check fails for you, check out the section on Developer Certificate of Origin. If you have any questions, feel free to leave a comment here, or ask away on IREE Discord. Thank you, |
This PR adds a new
hal.command_buffer.flush_bufferoperation together with its implementation as a NOP in all backends. This operation is lowered fromstream.cmd.flushwhich before was simply deleted.cmd_ops.mlirfails in@cmdFillOnQueue/@cmdCopyOnQueue: an execute region with one fill or copy plus astream.cmd.flushno longer becomeshal.device.queue.fill/copy, becausematchSingleTransferOpno longer ignores flushes. It now records a command buffer (fill,barrier,flush_buffer,barrier). We do not know what is the correct way to rewrite the test.This PR is in preparation for the real implementation since right now flushing is done implicitly by the runtime future work will remove it and make
hal.command_buffer.flush_bufferbehave properly.Part of #24930
Assisted-by: Claude