FABRICA: Agentic CUDA-to-CSL Translation and Optimization for Wafer-Scale Systems
Yuebo Luo, Eliu Huerta, Venkatram Vishwanath, Caiwen Ding, Rajeev Thakur, Le Chen
Abstract
Porting GPU kernels across architectures requires architectural remapping, not syntax substitution. CUDA encodes decomposition, locality, and synchronization through threads, blocks, and memory accesses; the Cerebras Software Language (CSL) requires explicit placement, distributed SRAM, fabric communication, event-driven tasks, and host/device contracts. We present FABRICA-Bench, 49 paired CUDA-to-CSL tasks, and FABRICA, an agentic framework combining target knowledge, execution, failure-directed repair, and correctness-gated optimization. On a fixed 28-task Level~1--3 core comparison with Claude Opus 4.8, FABRICA raises success from 6/28 to 26/28; 22 successful programs match or beat their CSL references. Across the 49-task coverage evaluation, 38 tasks produce a correct program; the final three tasks are evaluated over three seeds and pass 8/9 runs. For 27 generated/reference pairs with device-internal timing, geometric-mean speedup is 3.75× on the SDK simulator and 3.47× on WSE-3 hardware. With the executable workflow fixed, Claude Opus~4.8 passes 26/28 core tasks while the best open-weight model passes 2/28; retrieved Cerebras knowledge separately raises success from 1/15 to 7/15 on a Level~1--3 panel. These results identify base-model capability, target knowledge, execution feedback, and same-target measurement as central to cross-architecture kernel generation.
Create a lesson
Related papers
Report of the 2026 Workshop on Next-Generation Ecosystems for Scientific Computing: Harnessing Community, Software, and AI for Cross-Disciplinary Team Science
Lois Curfman McInnes, Dorian Arnold, Prasanna Balaprakash et al.
Efficient tensor bases for pairwise comparisons
Konrad Kułakowski, Ryszard Smarzewski
Unlocking Multimodal Protein Language Models at Inference Time
Yi Zhou, Qipeng Wang, Yunqing Liu et al.
Forecasting Global Volatility Across Asynchronous Markets: Incremental Accuracy from Constrained Cross-Market Attention
Xinlin Zhao, Haotian Qiao, Ziyao Lin
RWA-PoB: A Credential-Based Proof-of-Backing Framework for Tokenized U.S. Treasury Products
Rischan Mafrur, Gun Gun Febrianza, Sean Foley
A Co-Simulation Platform Coupling Land Use, Transportation, and Building Energy: Development and Case Study
Gopindra Sivakumar Nair, Yilin Jiang, Samuel Maurer et al.