Skip to main navigation Skip to search Skip to main content

Exploring the Limits of Generic Code Execution on GPUs via Direct (OpenMP) Offload

  • Shilei Tian
  • , Barbara Chapman
  • , Johannes Doerfert
  • Stony Brook University
  • Lawrence Livermore National Laboratory

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

Abstract

GPUs are well-known for their remarkable ability to accelerate computations through massive parallelism. However, offloading computations to GPUs necessitates manual identification of code regions that should be executed on the device, memory that needs to be transferred, and synchronization to be handled. Recent work has leveraged the portable target offloading interface provided by LLVM/OpenMP, taking GPU acceleration to a new level. This approach, known as the direct GPU compilation scheme, involves compiling the entire host application for the GPU and executing it there, thereby eliminating the need for explicit offloading directives. Nonetheless, due to limitations of the current GPU compiler toolchain and execution, seamlessly executing CPU code on GPUs with certain features remains a significant challenge. In this paper, we examine the limits of CPU code execution on GPUs by applying the direct GPU compilation scheme to LLVM’s test-suite, analyze the encountered errors, and discuss potential solutions for enabling more code to execute on GPUs without any changes if feasible. By studying these issues, we shed light on how to improve GPU acceleration and make it more accessible to developers.

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
Pages179-192
Number of pages14
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

  • GPU
  • OpenMP
  • compiler testing

Fingerprint

Dive into the research topics of 'Exploring the Limits of Generic Code Execution on GPUs via Direct (OpenMP) Offload'. Together they form a unique fingerprint.

Cite this