More with Less: Efficient Parallel Scientific Code Translation via an Agent-Skill Workflow
Jianuo Shen, Pengyi Xu, Bo Zhang
Abstract
Translating parallel scientific codes between HPC programming frameworks is a critical but labor-intensive task. Existing LLM-based approaches rely on fixed sequential pipelines with undifferentiated repair strategies and correctness criteria that do not match scientific computing practice. We present an agent-skill framework that separates translation, compilation diagnosis, and execution validation into three autonomous agents coordinated by a verdict-driven orchestrator, routing each failure to a targeted repair skill rather than retrying blindly. An automated output check drives the self-correction loop, complemented by an offline LLM-based verification that exposes false positives escaping compiler and runtime checks. We evaluate the framework on 30 HeCBench kernels translated bidirectionally among CUDA, OpenMP, and SYCL with three open-source LLMs. Our framework attains the higher verified correctness rate in all 18 model and direction combinations over a state-of-the-art baseline while consuming up to 52.4% fewer tokens, remaining consistent across models and directions without architectural modification.
Create a lesson
Related papers
Can Agentic LLMs Write Task-Based Parallel Code? A Study of OpenMP Tasking, HPX, StarPU and TTG
Shared title terminology · Linus Bantel, Anna-Lena Roth, Tim Thüring et al.
PegasusAI Studio: Legible Cyberinfrastructure and Accountable AI Agents for Scientific Workflows
Shared title terminology · Komal Thareja, Mats Rynge, Berent Aldikacti et al.
Migrating a Legacy Scientific Application with an AI Coding Agent: NICAM from Fortran to Kokkos
Shared title terminology · Xuanzhengbo Ren, Takashi Shimokawabe, Hisashi Yashiro
Matching Architecture to Workload: Comparing RISC-V Parallel Accelerators for Energy-Efficient Embedded Computing
Shared title terminology · Luca Colombo, Luigi Ghionda, Amirhossein Kiamarzi et al.
SS-HSDP: Efficient and Flexible Sharded Data Parallelism via Runtime-Update Decoupling
Shared title terminology · Chendong Xiang, Pengle Zhang, Jinliang Li et al.
Recompute or Restore? Host-Tier KV for Multi-Model Agent Workflows on a Static-Graph NPU Serving Stack
Shared title terminology · Sungwon Woo, Seyeon Kim