HPCAgentTester: A Multi-Agent LLM Approach for Enhanced HPC Unit Test Generation
Rabimba Karanjai, Lei Xu, Weidong Shi

TL;DR
HPCAgentTester is a multi-agent LLM framework that automates and improves unit test generation for HPC applications, effectively addressing parallelism and synchronization challenges.
Contribution
It introduces a collaborative multi-agent LLM approach for generating context-aware HPC unit tests, enhancing bug detection and test correctness.
Findings
Significantly improves test compilation rates.
Effectively detects subtle parallel bugs.
Outperforms standalone LLMs in test generation.
Abstract
Unit testing in High-Performance Computing (HPC) is critical but challenged by parallelism, complex algorithms, and diverse hardware. Traditional methods often fail to address non-deterministic behavior and synchronization issues in HPC applications. This paper introduces HPCAgentTester, a novel multi-agent Large Language Model (LLM) framework designed to automate and enhance unit test generation for HPC software utilizing OpenMP and MPI. HPCAgentTester employs a unique collaborative workflow where specialized LLM agents (Recipe Agent and Test Agent) iteratively generate and refine test cases through a critique loop. This architecture enables the generation of context-aware unit tests that specifically target parallel execution constructs, complex communication patterns, and hierarchical parallelism. We demonstrate HPCAgentTester's ability to produce compilable and functionally correct…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software System Performance and Reliability · Scientific Computing and Data Management
