Papers › Can Large Language Models Write Parallel Code?

Can Large Language Models Write Parallel Code?

23 Jan 2024arXiv:2401.12554archive 2025-07-28

Daniel Nichols, Joshua H. Davis, Zhaojun Xie, Arjun Rajaram, Abhinav Bhatele

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.12554")

Code

Syntology Ran 18 of 19 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 18 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 18 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

parallelcodefoundry/ParEval officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 18 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18ran
1unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from parallelcodefoundry/ParEval. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

all_equal parallelcodefoundry/ParEval/drivers/util.py official repository ran fingerprinted MIT (permissive) · de2d759b067567af · report
already_has_results parallelcodefoundry/ParEval/drivers/run-all.py official repository ran MIT (permissive) · e7bbb8f061c2443c · report
any_in parallelcodefoundry/ParEval/analysis/bin-the-stack.py official repository ran MIT (permissive) · 0938e73682f13d8b · report
buildk parallelcodefoundry/ParEval/analysis/metrics.py official repository ran MIT (permissive) · 98ceec1f11b8e7a0 · report
clean_output parallelcodefoundry/ParEval/generate/clean-outputs.py official repository ran fingerprinted MIT (permissive) · b588819cf6250c27 · report
efficiencyk parallelcodefoundry/ParEval/analysis/metrics-scaling.py official repository ran MIT (permissive) · 8d9bdc243671a23f · report
get_correctness_df parallelcodefoundry/ParEval/analysis/metrics.py official repository ran MIT (permissive) · e011cbcff09dc44b · report
get_env_var parallelcodefoundry/ParEval/generate/generate-gemini.py official repository ran MIT (permissive) · 2f1ce38ddef63dc9 · report
get_function_name parallelcodefoundry/ParEval/generate/generate-gemini.py official repository ran MIT (permissive) · fc1387d6dfa3f110 · report
get_max_tokens_per_second parallelcodefoundry/ParEval/generate/generate-gemini.py official repository ran fingerprinted MIT (permissive) · 60484b445abb73b5 · report
get_max_tokens_per_second parallelcodefoundry/ParEval/generate/generate-openai.py official repository ran fingerprinted MIT (permissive) · 85d8ccfa5ba4fb7b · report
has_balanced_brackets parallelcodefoundry/ParEval/generate/clean-outputs.py official repository ran MIT (permissive) · d55502b35fc3f4c1 · report
has_outputs parallelcodefoundry/ParEval/analysis/create-dataframe.py official repository ran MIT (permissive) · 311658ebceb020fe · report
load_json parallelcodefoundry/ParEval/drivers/util.py official repository ran MIT (permissive) · 9430b9d58bca314d · report
nCr parallelcodefoundry/ParEval/analysis/metrics-scaling.py official repository ran fingerprinted MIT (permissive) · c1d07cc2f1b9ecf6 · report
read_json parallelcodefoundry/ParEval/analysis/bin-the-stack.py official repository ran MIT (permissive) · 24736464e5b48a38 · report
speedupk parallelcodefoundry/ParEval/analysis/metrics-scaling.py official repository ran MIT (permissive) · 084d0107c87254df · report
uses_mpi parallelcodefoundry/ParEval/analysis/bin-the-stack.py official repository ran fingerprinted MIT (permissive) · 6eee785f978e2422 · report
await_input parallelcodefoundry/ParEval/drivers/util.py official repository unverified MIT (permissive) · 9c46438f56d92741 · report

Tasks

Code CompletionCode GenerationLanguage ModelingLanguage ModellingLarge Language Model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections