Application-Defined Abstractions to Separate Numerical Intent from Computation Orchestration
Abstract
In High-performance Computing the holy grail has been to translate numerical algorithms expressed in mathematical notation into code that performs well across a range of platforms. A variety of portability frameworks have abstracted data layout, parallelization and orchestration from application's view, however, the resulting format is still code that conforms to the idioms of the framework. Additionally, substantial refactoring is typically needed to achieve performance goals. Increasing sophistication of Large Language Models (LLMs) naturally raises the question whether they can be used to make application codes and/or solvers both portable and performant. The obstacle is the lack of correctness guarantee in LLM produced code. In this paper we pose the question differently -- can we start with expressing numerical intent of the code into an immutable core arithmetic component isolated from the surrounding code such that the surrounding code can be safely generated by the LLMs? We answer this question by using Spark, a mature compressible hydrodynamics solver in Flash-X, a multiphysics software system. We use LLM assistance in devising the abstractions and embedding them in the solver. Once properly verified, the resulting solver is lowered to concrete realization deterministically with tools also built with LLM assistance. The driver of the numerics and the code for interfacing with the application are generated by the LLMs. The resulting solver is exercised within Flash-X and with a separate environment we built for this experiment. Our results show that this is a viable approach for producing correct and performance portable code.
Create a lesson
Metadata
- Categories
- cs.SE, cs.MS
Related papers
Characterizing GitHub Security Actions Alerts For Web Application Tutorials
Shared title terminologycs.SEBhagya Chembakottu, Martin P. Robillard
Injectra: Retrofitting Extensibility into Web-Based Desktop Applications
Shared title terminologycs.SEQin Sun
Edge Computing for IoT-Enabled Smart Cities: A Review of Middleware, Explainable AI, and User Behavior Analytics
Shared title terminologycs.SEAlexandros Gazis, George Vavouras, Nikos E. Mastorakis et al.
LOHRE: Execution-Grounded Type Recovery via LLM-Orchestrated Hybrid Analysis
Shared title terminologycs.SEHao Jiang, Yujie Yang, Tao Li et al.
FlowPlan: Reducing the Token Cost of Coding Agents with Abstraction-Guided Planning and Verification
Shared title terminologycs.SEMelika Sepidband, Jiho Shin, Song Wang et al.
WasmLens: Automatic Glass-Box Instrumentation for Composed WebAssembly Applications
Shared title terminologycs.SEMichiel Van Kenhove, Ewout Verlinde, José Santos et al.