计算机科学 > 程序设计语言
[提交于 2026年11月30日]
标题:Teal: Verifiable Kernel Compilation through Instruction-Centric Lifting
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:High-performance tensor kernel compilation faces a two-sided challenge as accelerator hardware diverges. Kernel authors need a way to express target-specific execution schedules without manually encoding low-level pointer addressing, memory layouts, or assembly intrinsics, while compiler engineers need a way to realize schedules on new architectures without requiring custom lowering and transformation passes for every ISA. We present Teal, a two-sided programming model and compiler that treats both the target architecture's hardware specification and the kernel's schedule as programmable inputs to a shared compilation pipeline. On the machine side, a reusable dialect program specifies a target's processor description, memory hierarchy, instruction set, and synchronization protocols. On the client side, a kernel program composes that declared vocabulary over symbolic tensor views using generic operators, processor scopes, and data dependencies. Rather than recovering machine instructions from loop nests, the Teal compiler performs compositional instruction-centric lifting: it combines the machine dialect and client schedule to automatically derive and statically verify tile loops, physical data layouts, memory and register addresses, data dependencies, and synchronization validity. Supporting a new accelerator or instruction set therefore requires programming only its dialect specification and bindings, while reusing the lifting, verification, and composition compiler to provide a compact, statically checked kernel language for a client. We evaluate Teal across heterogeneous architectures and kernels, demonstrating that Teal can represent schedules that match or outperform hand-optimized vendor baselines while enabling high compiler reuse and rapid kernel synthesis on complex pipelines.
提交历史
来自:Shriram Chandran[v1] 2026年11月30日 星期一 12:44:11 UTC (216 KB)