Skip to main content

compile_to_tenstorrent

Function compile_to_tenstorrent 

Source
pub fn compile_to_tenstorrent(source: &str) -> Result<TtArtifact, ParseError>
Expand description

Compile to a single-Tensix-core TT-Metalium program — the LOGOS → Tenstorrent AOT tier. The compute body is the C translation (compile_to_c, byte-for-byte ≡ the VM), wrapped by crate::codegen_tt as a data-movement kernel on one baby RISC-V core (RISCV_0) plus a host orchestrator. Uses the SAME Oracle-optimized bytecode to scan for ops outside the single-baby-core fragment — CONCURRENCY (channels/tasks/select need a ucontext scheduler; the mesh tier lowers those) — returning a Custom ParseError, a sound refusal, never wrong code. OFFLINE networking rides the newlib-clean C net runtime on-core. Returns the emitted crate::codegen_tt::TtArtifact.