Skip to main navigation Skip to search Skip to main content

Maximizing Parallelism and GPU Utilization For Direct GPU Compilation Through Ensemble Execution

  • 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 renowned for their exceptional computational acceleration capabilities achieved through massive parallelism. However, utilizing GPUs for computation requires manual identification of code regions suitable for offloading, data transfer management, and synchronization. Recent advancements have capitalized on the LLVM/OpenMP portable target offloading interface, elevating GPU acceleration to new heights. This approach, known as the direct GPU compilation, involves compiling the entire host application for execution on the GPU, eliminating the need for explicit offloading directives. However, direct GPU compilation is limited to the thread parallelism a CPU application exposes, which is often not enough to saturate a modern GPU. This paper explores an alternative approach to enhance parallelism by enabling ensemble execution. We introduce a proof-of-concept implementation that maps each invocation of an application on a different input to an individual team executed by the same GPU kernel. Our enhanced GPU loader can read command line arguments for different instances from a file to simplify the usability. Through extensive evaluation using four benchmarks, we observe up to 51X speedup for 64 instances. This demonstrate the effectiveness of ensemble execution in improving parallelism and optimizing GPU utilization for CPU programs compiled and executed directly on the GPU.

Original languageEnglish
Title of host publication52nd International Conference on Parallel Processing, ICPP 2023 - Workshops Proceedings
PublisherAssociation for Computing Machinery
Pages112-118
Number of pages7
ISBN (Electronic)9798400708435
DOIs
StatePublished - Aug 7 2023
Event52nd International Conference on Parallel Processing Workshop, ICPP Workshops 2023 - Salt Lake City, United States
Duration: Aug 7 2023Aug 10 2023

Publication series

NameACM International Conference Proceeding Series

Conference

Conference52nd International Conference on Parallel Processing Workshop, ICPP Workshops 2023
Country/TerritoryUnited States
CitySalt Lake City
Period08/7/2308/10/23

Keywords

  • GPU
  • LLVM
  • OpenMP
  • accelerator offloading
  • ensemble execution

Fingerprint

Dive into the research topics of 'Maximizing Parallelism and GPU Utilization For Direct GPU Compilation Through Ensemble Execution'. Together they form a unique fingerprint.

Cite this