AutoParLLM: GNN-guided Context Generation for Zero-Shot Code Parallelization using LLMs

Abstract

In-Context Learning (ICL) has been shown to be a powerful technique to augment the capabilities of LLMs for a diverse range of tasks. This work proposes , a novel way to generate context using guidance from graph neural networks (GNNs) to generate efficient parallel codes. We evaluate on 12 applications from two well-known benchmark suites of parallel codes: NAS Parallel Benchmark and Rodinia Benchmark. Our results show that improves the state-of-the-art LLMs (e.g., GPT-4) by 19.9\% in NAS and 6.48\% in Rodinia benchmark in terms of CodeBERTScore for the task of parallel code generation. Moreover, improves the ability of the most powerful LLM to date, GPT-4, by achieving ≈17\% (on NAS benchmark) and ≈16\% (on Rodinia benchmark) better speedup. In addition, we propose for evaluating the quality of the parallel code and show its effectiveness in evaluating parallel codes. is available at https://github.com/quazirafi/AutoParLLM.git.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…