Abstract
Large Language Models (LLMs) have emerged as powerful tools for software development tasks such as code completion, translation, and optimization. However, their ability to generate efficient and correct code, particularly in complex High-Performance Computing (HPC) contexts, has remained underexplored. To address this gap, this paper presents a comprehensive benchmark suite encompassing multiple critical HPC computational motifs to evaluate the performance of code optimized by state-of-the-art LLMs, including OpenAI o1, Claude-3.5, and Llama-3.2, as well as HPC-Coder, a model tuned specifically for HPC tasks. In addition to analyzing basic computational kernels, we developed a workflow that integrates LLMs to assess their effectiveness in real HPC applications. Our evaluation focused on key criteria such as execution time, correctness, and understanding of HPC-specific concepts. We also compared the results with those achieved using traditional HPC optimization tools. Based on the findings, we recognized the strengths of LLMs in understanding human instructions and performing automated code transformations. However, we also identified significant limitations, including their tendency to generate incorrect code and their challenges in comprehending complex control and data flows in sophisticated HPC code.
| Original language | English |
|---|---|
| Title of host publication | 54th International Conference on Parallel Processing, ICPP 2025 - Workshops Proceedings |
| Publisher | Association for Computing Machinery, Inc |
| Pages | 1-8 |
| Number of pages | 8 |
| ISBN (Electronic) | 9798400721090 |
| DOIs | |
| State | Published - Dec 20 2025 |
| Event | 54th International Conference on Parallel Processing Workshop, ICPP 2025 - San Diego, United States Duration: Sep 8 2025 → Sep 11 2025 |
Publication series
| Name | 54th International Conference on Parallel Processing, ICPP 2025 - Workshops Proceedings |
|---|
Conference
| Conference | 54th International Conference on Parallel Processing Workshop, ICPP 2025 |
|---|---|
| Country/Territory | United States |
| City | San Diego |
| Period | 09/8/25 → 09/11/25 |
Funding
We thank all reviewers for the suggestions to improve the paper. We also thank George Mason University and Oak Ridge National Laboratory for providing the computing facilities. This work is supported by a donation from AIGCSEMI LLC, NSF Award 2411134, LLM API credits from Anthropic and Together.ai, and a Codee software license supported by Appentra Solutions.
Keywords
- Code optimization
- High-performance computing
- Large language models
- Performance benchmarking
Fingerprint
Dive into the research topics of 'Comprehensive Evaluation of LLMs in HPC Code Performance Optimization'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver