Metraipolis › archive › dc_d137510d9784

ForgeStencil: Automating Per-Case Stencil Specialization from Kernels to 100+ Real Applications — arXiv:2609.06694

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.06694
License (as archived)
CC0-1.0
Archived
2026-10-16T13:07:12.797Z
SHA-256 of the archived text
00eba41dbdf6312287aa44d481f3567df77db74414492990ef4755319ee6d659
Stable URL of this page
https://metraipolis.com/documento/dc_d137510d9784

How to cite

ForgeStencil: Automating Per-Case Stencil Specialization from Kernels to 100+ Real Applications — arXiv:2609.06694 — arXiv (en), https://arxiv.org/abs/2609.06694 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d137510d9784 (Metraipolis archive dc_d137510d9784, sha256 00eba41dbdf6312287aa44d481f3567df77db74414492990ef4755319ee6d659)
BibTeX
@misc{dcd137510d9784,
  title = {ForgeStencil: Automating Per-Case Stencil Specialization from Kernels to 100+ Real Applications — arXiv:2609.06694},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.06694},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d137510d9784; sha256 00eba41dbdf6312287aa44d481f3567df77db74414492990ef4755319ee6d659},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.06694. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Industrial and scientific computing rests on a few core kernels, and the stencil is among the most widely used: weather and climate models, seismic imaging, fluid dynamics, and image processing all run on it. No single stencil implementation is fastest: the optimal kernel changes qualitatively with stencil shape, grid shape, precision, and host application. For two decades the field has answered with general methods (DSLs, code generators, autotuners), because specialized solutions were too expensive to build per case, so all reuse one human-authored recipe. That reuse costs performance; we call the cost the generality tax. This premise no longer holds: code-synthesis agents now build a correct, specialized solution per case at acceptable cost. ForgeStencil automates this. A Kernel Agent synthesizes CUDA and forges a per-configuration map of specialized operators, removing the tax case by case. On an A100 the map beats the strongest public baseline in 37 of 37 cases: geometric mean 2.35x against same-precision f32 baselines and 1.95x for fp16, each reported under its own precision. The same change reaches end-to-end application performance. A generic operator library is tuned once for its own general case and reused across applications, so its shapes, layouts, and launch boundaries are optimal for none of them: using it is the application-level form of the tax. An App Agent instead forges a specialized solution per application, locating hotspots, rewriting application structure, and validating and integrating each change. Across 100 real industrial and scientific codes the end-to-end median speedup is 1.41x against each application's own GPU baseline. To our knowledge this is the first demonstration that per-case synthesis carries from a kernel library to complete applications at this breadth, and evidence that reuse is no longer the default in a domain built on it for two decades.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-09 in cs.DC).
Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC).
Pagina del lavoro: https://arxiv.org/abs/2609.06694 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-16T13:02:21.564Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-09?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).