Skip to main content

try_dispatch

Function try_dispatch 

Source
pub unsafe fn try_dispatch(
    function: DispatchFn,
    params: &[u32],
    workload: &[u32],
    ranges: &[AnyBufferRange],
) -> Result<(), Error>
Expand description

Dispatches an IREE workload with the default executor.

ยงSafety

function must be a valid IREE dispatch function. Every buffer pointer must remain valid for its declared range until all scheduled work completes.