Can Agentic LLMs Write Task-Based Parallel Code? A Study of OpenMP Tasking, HPX, StarPU and TTG
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Task-based programming offers more expressive power than loop-level parallelism, but the runtimes providing it differ widely in API style, maturity, and the amount of public code to learn from. This paper asks how well LLM agents write C++ for four of them: OpenMP Tasking, HPX, StarPU, and TTG. Instead of single one-shot prompts, we use an agentic workflow in which the model edits files, compiles, and runs its kernels until it reproduces a reference output. Five locally hosted open-weight LLM implement seven HPC kernels, including matrix multiplication, Cholesky and LU factorization, in all four frameworks and a serial baseline to verify their understanding of the problem in general. Every kernel is evaluated independently for correctness at each concurrency level, strong scaling, and peak memory. Model capability dominates the outcome: three models produce correct, genuinely task-parallel kernels in 57-82% of the cases, while two models rarely compile their own code and almost never succeed. For the capable models, OpenMP Tasking and HPX are handled most reliably, StarPU is close behind, and TTG trails. The best generated GEMM and factorization kernels match or exceed the multithreaded OpenBLAS/LAPACK reference. However, correctness overstates parallel quality: several "parallel" kernels contain no parallelism at all; and serialized task graphs and unsuitable task granularity remain common.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 9 of its 24 references that are in the map. Submitted 14 Nov 2026.
Builds on
9 of 24 references.
Closest ancestors · 1
Same direction, newest first
Other references · 8
- 2025Qwen3 Technical Reportcited by 9,994
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2024Can Large Language Models Write Parallel Code?cited by 39
- 2023Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generationcited by 23
- 2026From Prompts to Performance: Evaluating LLMs for Task-based Parallel Code Generationcited by 2
- 2026Generated, Parallel, Scalable? A Study of Agentic AI-Generated Julia Code on Supercomputerscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
- 2026Exploring the Role of LLMs in HPC Programming: A Survey
- 2026More with Less: Efficient Parallel Scientific Code Translation via an Agent-Skill Workflow
- 2026Exploring the Agentic Frontier of Verilog Code Generation
- 2026SkVM: Revisiting Language VM for Skills across Heterogenous LLMs and Harnesses
- 2026Scepsy: Serving Agentic Workflows Using Aggregate LLM Pipelines
- 2025HPCAgentTester: A Multi-Agent LLM Approach for Enhanced HPC Unit Test Generation
- 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Serving