mlsanityData to 7 Oct 2026

OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilation

arXiv 2409.14771 ↗First posted 23 Sep 2024cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

Manual parallelization of code remains a significant challenge due to the complexities of modern software systems and the widespread adoption of multi-core architectures. This paper introduces OMPar, an AI-driven tool designed to automate the parallelization of C/C++ code using OpenMP pragmas. OMPar integrates Large Language Models (LLMs) through two key components: OMPify, which assesses loop parallelization potential, and MonoCoder-OMP, a new fine-tuned model which generates precise OpenMP pragmas. The evaluation of OMPar follows the same rigorous process applied to traditional tools like source-to-source AutoPar and ICPC compilers: (1) ensuring the generated code compiles and runs correctly in serial form, (2) assessing performance with the gradual addition of threads and corresponding physical cores, and (3) verifying and validating the correctness of the code's output. Benchmarks from HeCBench and ParEval are used to evaluate accuracy and performance. Experimental results demonstrate that OMPar significantly outperforms traditional methods, achieving higher accuracy in identifying parallelizable loops and generating efficient pragmas. Beyond accuracy, OMPar offers advantages such as the ability to work on partial or incomplete codebases and the capacity to continuously learn from new code patterns, enhancing its parallelization capabilities over time. These results underscore the potential of LLMs in revolutionizing automatic parallelization techniques, paving the way for more efficient and scalable parallel computing systems.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 14 of its 53 references that are in the map. First posted on arXiv 23 Sep 2024.

Builds on

14 of 53 references.

References · 14

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2024Can Large Language Models Write Parallel Code?cited by 36
  6. 2023Comparing Llama-2 and GPT-3 LLMs for HPC kernels generationcited by 30
  7. 2024The Landscape and Challenges of HPC Research and LLMscited by 22
  8. 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMPcited by 16
  9. 2023MonoCoder: Domain-Specific Code Language Model for HPC Codes and Taskscited by 12
  10. 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
  11. 2022Learning to Parallelize in a Shared-Memory Environment with Transformerscited by 10
  12. 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
2 more
  1. 2020ComPar: Optimized Multi-Compiler for Automatic OpenMP S2S Parallelizationcited by 8
  2. 2014Specifying and Executing Optimizations for Parallel Programscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.