Skip to main content

codegen_program_tt

Function codegen_program_tt 

Source
pub fn codegen_program_tt(
    program: &CompiledProgram,
    oracle_c: &str,
) -> Result<TtArtifact, TtLowerError>
Expand description

Emit program as a single-Tensix-core TT-Metalium program. oracle_c is the self-contained C translation of the SAME program (from crate::compile::compile_to_c); its compute body becomes the kernel. Returns TtLowerError::Unsupported if the program uses any op outside the single-baby-core fragment.