Domain-specific languages (DSLs) promise a significant performance and portability advantage over traditional languages. DSLs are designed to be high-level and platform-independent, allowing an optimizing compiler significant leeway when targeting a particular device. Such languages are particularly popular with emerging tensor algebra workloads. However, DSLs present their own challenge: they require programmers to learn new programming languages and put in significant effort to migrate legacy code.
We present C2TACO, a synthesis tool for synthesizing TACO, a well-known tensor DSL, from C code. We develop a smart, enumerative synthesizer that uses automatically generated IO examples and source-code analysis to efficiently generate code. C2TACO is able to synthesize 95% bench marks from a tensor benchmark suite, out-performing an alternative neural machine translation technique, and demonstrates substantially higher levels of accuracy when evaluated against two state-of-the-art existing schemes, TF-Coder and ChatGPT. Our synthesized TACO programs are, by design, portable achieving significant performance improvement when evaluated on a multi-core and GPU platform.
Sun 22 OctDisplayed time zone: Lisbon change
14:00 - 15:30 | Session 2GPCE at Room XV Chair(s): Eric Van Wyk Department of Computer Science and Engineering, University of Minnesota, USA | ||
14:00 30mTalk | A pred-LL(*) Parsable Typed Higher-Order Macro System for Architecture Description Languages GPCE | ||
14:30 30mTalk | A Monadic Framework for Name Resolution in Multi-Phased Type Checkers GPCE Casper Bach Poulsen Delft University of Technology, Aron Zwaan Delft University of Technology, Paul Hübner Delft University of Technology Link to publication DOI Pre-print | ||
15:00 30mTalk | C2TACO: Lifting Tensor Code to TACO GPCE José Wesley De Souza Magalhães University of Edinburgh, Jackson Woodruff University of Edinburgh, Elizabeth Polgreen University of Edinburgh, Michael F. P. O'Boyle University of Edinburgh |