New Tool Generates Stencil Codes Two Orders of Magnitude Faster on Cerebras WSE Than on GPUs
Mar 4, 2025

Summary
This post introduces StencilPy, a portable, high-performance code generator for stencil computations, and details its performance on the Cerebras CS-2 system. It highlights that StencilPy reduces the code required for stencil computations on the Cerebras CS-2 by a factor of 7 and achieves significant speedups compared to GPUs (NVIDIA H100) and CPUs (AMD MI210, AMD Genoa). The post elaborates on the Cerebras Wafer-Scale Engine (WSE) architecture, emphasizing its massive parallelism, on-chip memory, and high-bandwidth interconnect as key advantages for stencil computations. It also discusses the Cerebras Software Language (CSL) as the underlying technology enabling these optimizations.
More from the Wafer-Scale Field Equation Modeling trail
- Real-Time Computational Physics with Wafer-Scale Processing [updated]
- Beyond AI for Wafer Scale Compute: Setting Records in Computational Fluid Dynamics - Cerebras
- TotalEnergies and Cerebras Create Massively Scalable Stencil Algorithm - Cerebras
- TotalEnergies and Cerebras: Accelerating into a Multi-Energy Future (Updated) - Cerebras
- Sandia Awards Major Contract to Cerebras Systems - Cerebras