Bridging the Gap: Empowering Small Models in Reliable OpenACC-based Parallelization via GEPA-Optimized Prompting
Samyak Jhaveri, Cristina V. Lopes

TL;DR
This paper introduces a prompt optimization method using the GEPA framework to improve small LLMs' ability to generate reliable OpenACC GPU parallelization directives, significantly increasing compilation success and performance gains.
Contribution
It presents a systematic prompt optimization approach that enhances small LLMs' capability to generate correct and performant OpenACC pragmas without extensive retraining.
Findings
Compilation success rate for GPT-4.1 Nano increased from 66.7% to 93.3%.
GPT-5 Nano achieved 100% success rate with optimized prompts.
21% more programs achieved GPU speedups over CPU baselines.
Abstract
OpenACC lowers the barrier to GPU offloading, but writing high-performing pragma remains complex, requiring deep domain expertise in memory hierarchies, data movement, and parallelization strategies. Large Language Models (LLMs) present a promising potential solution for automated parallel code generation, but naive prompting often results in syntactically incorrect directives, uncompilable code, or performance that fails to exceed CPU baselines. We present a systematic prompt optimization approach to enhance OpenACC pragma generation without the prohibitive computational costs associated with model post-training. Leveraging the GEPA (GEnetic-PAreto) framework, we iteratively evolve prompts through a reflective feedback loop. This process utilizes crossover and mutation of instructions, guided by expert-curated gold examples and structured feedback based on clause- and clause…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Machine Learning in Materials Science · Natural Language Processing Techniques
