iree-org / iree

A retargetable MLIR-based machine learning compiler and runtime toolkit.
http://iree.dev/
Apache License 2.0
2.47k stars 551 forks source link

[WIP] Making HAL command buffers take buffers as indirect args. #17730

Open benvanik opened 6 days ago

benvanik commented 6 days ago

This allows for the same command buffer interface to be used for recording indirect command buffers that reference buffer table slots instead of having concrete iree_hal_buffer_t pointers available at the time they are recorded. As part of this first change behavior is kept largely the same and only the arguments are changed. Future changes per backend will be needed to actually support driver-side encoding of the indirect bindings.