Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computing (2407.05202v1)

Published 6 Jul 2024 in cs.SE and cs.AI

Abstract: Unit testing is crucial in software engineering for ensuring quality. However, it's not widely used in parallel and high-performance computing software, particularly scientific applications, due to their smaller, diverse user base and complex logic. These factors make unit testing challenging and expensive, as it requires specialized knowledge and existing automated tools are often ineffective. To address this, we propose an automated method for generating unit tests for such software, considering their unique features like complex logic and parallel processing. Recently, LLMs have shown promise in coding and testing. We explored the capabilities of Davinci (text-davinci-002) and ChatGPT (gpt-3.5-turbo) in creating unit tests for C++ parallel programs. Our results show that LLMs can generate mostly correct and comprehensive unit tests, although they have some limitations, such as repetitive assertions and blank test cases.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Rabimba Karanjai (18 papers)
  2. Aftab Hussain (23 papers)
  3. Md Rafiqul Islam Rabin (25 papers)
  4. Lei Xu (172 papers)
  5. Weidong Shi (42 papers)
  6. Mohammad Amin Alipour (33 papers)
X Twitter Logo Streamline Icon: https://streamlinehq.com