HPC-Coder: Modeling Parallel Programs using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Parallel programs in high performance computing (HPC) continue to grow in complexity and scale in the exascale era. The diversity in hardware and parallel programming models make developing, optimizing, and maintaining parallel software even more burdensome for developers. One way to alleviate some of these burdens is with automated development and analysis tools. Such tools can perform complex and/or remedial tasks for developers that increase their productivity and decrease the chance for error. Until recently, such tools for code development and performance analysis have been limited in the complexity of tasks they can perform, especially for parallel programs. However, with recent advancements in language modeling, and the availability of large amounts of open-source code related data, these tools have started to utilize predictive language models to automate more complex tasks. In this paper, we show how large language models (LLMs) can be applied to tasks specific to high performance and scientific codes. We introduce a new dataset of HPC and scientific codes and use it to fine-tune several pre-trained models. We compare several pre-trained LLMs on HPC-related tasks and introduce a new model, HPC-Coder, fine-tuned on parallel codes. In our experiments, we show that this model can auto-complete HPC functions where generic models cannot, decorate for loops with OpenMP pragmas, and model performance changes in scientific application repositories as well as programming competition solutions.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 26 of its 51 references that are in the map. First posted on arXiv 29 Jun 2023.
Builds on
26 of 51 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2023A Survey of Large Language Modelscited by 2,576
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023StarCoder: may the source be with you!cited by 799
14 more
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2018Demystifying Parallel and Distributed Deep Learning: An In-Depth Concurrency Analysiscited by 156
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
- 2022What is it like to program with artificial intelligence?cited by 39
- 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17
- 2022Piloting Copilot, Codex, and StarCoder2: Hot Temperature, Cold Prompts, or Black Magic?cited by 14
- 2022Learning to Reduce False Positives in Analytic Bug Detectorscited by 12
- 2021A Survey and Empirical Evaluation of Parallel Deep Learning Frameworkscited by 7
- 2022Learning code summarization from a small and local datasetcited by 5
- 2022Can we learn from developer mistakes? Learning to localize and repair real bugs from real bug fixescited by 4
Built on by
Citing papers per year: 2023: 4; 2024: 6; 2025: 1.
11 papers.
- 2023Comparing Llama-2 and GPT-3 LLMs for HPC kernels generationcited by 30
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 21
- 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMPcited by 16
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2023Scope is all you need: Transforming LLMs for HPC Codecited by 12
- 2023MonoCoder: Domain-Specific Code Language Model for HPC Codes and Taskscited by 12
- 2024HPC-Coder-V2: Studying Code LLMs Across Low-Resource Parallel Languagescited by 8
- 2024OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilationcited by 5
- 2025Can Large Language Models Predict Parallel Code Performance?cited by 4
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Modelscited by 1
- 2025Can Large Language Models Predict Parallel Code Performance?6 May 2025
- 2024HPC-Coder-V2: Studying Code LLMs Across Low-Resource Parallel Languages19 Dec 2024
- 2024OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilation23 Sep 2024
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models17 Jun 2024
- 2024Performance-Aligned LLMs for Generating Fast Code29 Apr 2024
- 2024The Landscape and Challenges of HPC Research and LLMs3 Feb 2024
- 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMP28 Jan 2024
- 2023MonoCoder: Domain-Specific Code Language Model for HPC Codes and Tasks20 Dec 2023
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validation8 Oct 2023
- 2023Comparing Llama-2 and GPT-3 LLMs for HPC kernels generation12 Sep 2023
- 2023Scope is all you need: Transforming LLMs for HPC Code18 Aug 2023