Skip to main content

run

Function run 

Source
pub fn run(program: &Program, inputs: &[Value]) -> Result<Vec<Value>, Error>
Expand description

Execute a vyre IR program on the pure Rust reference interpreter.

inputs are matched to every non-workgroup buffer declaration in Program::buffers order. ReadWrite buffers consume an input value as their initial contents and are returned as raw Value::Bytes in declaration order after dispatch.

§Errors

Returns Error::Interp if IR validation fails, inputs are missing or excess, workgroup size is zero, names are unresolved, operand types do not match, unsupported IR is encountered, or float operations are requested before the integer-only interpreter grows full float support.