Can Large Language Models Write Parallel Code?
Daniel Nichols, Joshua Hoke Davis, Zhaojun Xie et al. · ACM International Symposium on High-Performance Parallel and Distributed Computing (HPDC) · 2024
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.
Cited by 31 works. doi:10.1145/3625549.3658689 Open-access PDF
Authors
References
- Kokkos 3: Programming Model Extensions for the Exascale Era
- MultiPL-E: A Scalable and Polyglot Approach to Benchmarking Neural Code Generation
- 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)
- HPC-Coder: Modeling Parallel Programs using Large Language Models
- DeepDev-PERF: a deep learning-based approach for improving software performance
- LLM4VV: Developing LLM-driven testsuite for compiler validation
- Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generation
- LM4HPC: Towards Effective Language Model Application in High-Performance Computing
- BioCoder: a benchmark for bioinformatics code generation with large language models
- An Empirical Study of High Performance Computing (HPC) Performance Bugs