Can Large Language Models Write Parallel Code?
Open Access
- 3 June 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 281-294
Abstract
Large language models are increasingly becoming a popular tool for software development. Their ability to model and generate source code has been demonstrated in a variety of contexts, including code completion, summarization, translation, and lookup. However, they often struggle to generate code for complex programs. In this paper, we study the capabilities of state-of-the-art language models to generate parallel code. In order to evaluate language models,we create a benchmark, ParEval, consisting of prompts that represent 420 different coding tasks related to scientific and parallel computing. We use ParEval to evaluate the effectiveness of several state-of-the-art open- and closed-source language models on these tasks. We introduce novel metrics for evaluating the performance of generated code, and use them to explore how well each large language model performs for 12 different computational problem types and six different parallel programming models.Keywords
All Related Versions
Funding Information
- National Science Foundation (2047120)
This publication has 8 references indexed in Scilit:
- BioCoder: a benchmark for bioinformatics code generation with large language modelsBioinformatics, 2024
- LLM4VV: Developing LLM-driven testsuite for compiler validationFuture Generation Computer Systems, 2024
- HPC-Coder: Modeling Parallel Programs using Large Language Models2024
- Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generation2023
- An Empirical Study of High Performance Computing (HPC) Performance Bugs2023
- MultiPL-E: A Scalable and Polyglot Approach to Benchmarking Neural Code GenerationIEEE Transactions on Software Engineering, 2023
- DeepDev-PERF: a deep learning-based approach for improving software performance2022
- Kokkos 3: Programming Model Extensions for the Exascale EraIEEE Transactions on Parallel and Distributed Systems, 2021