Presentation
From Legacy to Portable: An Agentic AI Workflow for Fortran Code Translation and Cross-Architecture Optimization
DescriptionLegacy Fortran codes remain central to many scientific applications but are poorly suited to today’s GPU-accelerated heterogeneous architectures. Manual porting to performance-portable frameworks like Kokkos is time-consuming and requires deep domain expertise, creating a major barrier to modernization. We present a novel autonomous agentic AI workflow that leverages large language models (LLMs) to translate and optimize Fortran kernels into portable Kokkos C++ implementations. Our framework employs specialized agents for translation, compilation, execution, error handling, testing, and optimization, orchestrated with SLURM and Spack on diverse GPU platforms. Using OpenAI’s proprietary models, we achieved fully autonomous kernel translation in under $3.5 per kernel, while iterative optimization consistently improved GFLOPS performance. In contrast, open-source models like Llama 4 Maverick performed poorly. In the poster session, we will present the workflow design, benchmark results across architectures, token cost analysis, and optimization gains, highlighting opportunities for scalable, fully autonomous modernization of scientific codebases.

Event Type
Research and ACM SRC Posters
TimeTuesday, 18 November 20258:00am - 5:00pm CST
LocationSecond Floor Atrium
Archive
view
Similar Presentations



