Skip to main navigation Skip to search Skip to main content

OpenMP Advisor: A Compiler Tool for Heterogeneous Architectures

  • Stony Brook University
  • Hewlett Packard Enterprise
  • Brookhaven National Laboratory

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

4 Scopus citations

Abstract

With the increasing diversity of heterogeneous architecture in the HPC industry, porting a legacy application to run on different architectures is a tough challenge. In this paper, we present OpenMP Advisor, a novel compiler tool that enables code offloading to a GPU with OpenMP using Machine Learning. Although the tool is currently limited to GPUs, it can be extended to support other OpenMP-capable devices. The tool has two modes: Training and Prediction. It analyzes benchmark codes, generates every possible code variant on the target device, runs and gathers data to train an ML-based cost model in the training mode, which predicts the runtime of every code variant in the prediction mode. The main objective behind this tool is to maintain the portability aspect of OpenMP. Our Advisor produced code for several applications on seven architectures with four compilers, and accurately anticipated the top ten options for each application on every architecture. Initial results suggest that this tool can help compiler developers and HPC researchers migrate their legacy codes to the new heterogeneous computing environment.

Original languageEnglish
Title of host publicationOpenMP
Subtitle of host publicationAdvanced Task-Based, Device and Compiler Programming - 19th International Workshop on OpenMP, IWOMP 2023, Proceedings
EditorsSimon McIntosh-Smith, Tom Deakin, Michael Klemm, Bronis R. de Supinski, Jannis Klinkenberg
PublisherSpringer Science and Business Media Deutschland GmbH
Pages34-48
Number of pages15
ISBN (Print)9783031407437
DOIs
StatePublished - 2023
EventProceedings of the 19th International Workshop on OpenMP, IWOMP 2023 - Bristol, United Kingdom
Duration: Sep 13 2023Sep 15 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14114 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceProceedings of the 19th International Workshop on OpenMP, IWOMP 2023
Country/TerritoryUnited Kingdom
CityBristol
Period09/13/2309/15/23

Keywords

  • compiler
  • cost model
  • gpu
  • machine learning
  • openmp

Fingerprint

Dive into the research topics of 'OpenMP Advisor: A Compiler Tool for Heterogeneous Architectures'. Together they form a unique fingerprint.

Cite this