Skip to main content

Research Repository

Advanced Search

Efficient GPU Offloading with OpenMP for a Hyperbolic Finite Volume Solver on Dynamically Adaptive Meshes

Wille, M; Weinzierl, T; Brito Gadeschi, G; Bader, M

Efficient GPU Offloading with OpenMP for a Hyperbolic Finite Volume Solver on Dynamically Adaptive Meshes Thumbnail


Authors

M Wille

G Brito Gadeschi

M Bader



Contributors

A. Bhatele
Editor

J. Hammond
Editor

M. Baboulin
Editor

C. Kruse
Editor

Abstract

We identify and show how to overcome an OpenMP bottleneck in the administration of GPU memory. It arises for a wave equation solver on dynamically adaptive block-structured Cartesian meshes, which keeps all CPU threads busy and allows all of them to offload sets of patches to the GPU. Our studies show that multithreaded, concurrent, non-deterministic access to the GPU leads to performance breakdowns, since the GPU memory bookkeeping as offered through OpenMP’s map clause, i.e., the allocation and freeing, becomes another runtime challenge besides expensive data transfer and actual computation. We, therefore, propose to retain the memory management responsibility on the host: A caching mechanism acquires memory on the accelerator for all CPU threads, keeps hold of this memory and hands it out to the offloading threads upon demand. We show that this user-managed, CPU-based memory administration helps us to overcome the GPU memory bookkeeping bottleneck and speeds up the time-to-solution of Finite Volume kernels by more than an order of magnitude.

Citation

Wille, M., Weinzierl, T., Brito Gadeschi, G., & Bader, M. (2023). Efficient GPU Offloading with OpenMP for a Hyperbolic Finite Volume Solver on Dynamically Adaptive Meshes. In A. Bhatele, J. Hammond, M. Baboulin, & C. Kruse (Eds.), High Performance Computing. ISC High Performance 2023 (65-85). https://doi.org/10.1007/978-3-031-32041-5_4

Conference Name ISC High Performance 2023
Conference Location Hamburg
Acceptance Date Feb 25, 2023
Online Publication Date May 10, 2023
Publication Date 2023
Deposit Date Mar 8, 2023
Publicly Available Date Jun 6, 2023
Publisher Springer Verlag
Volume 13948
Pages 65-85
Series Title Lecture Notes in Computer Science
Series ISSN 0302-9743
Book Title High Performance Computing. ISC High Performance 2023.
ISBN 9783031320408
DOI https://doi.org/10.1007/978-3-031-32041-5_4
Public URL https://durham-repository.worktribe.com/output/1134318

Files

Published Conference Proceeding (891 Kb)
PDF

Publisher Licence URL
http://creativecommons.org/licenses/by/4.0/

Copyright Statement
This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.

The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.





You might also like



Downloadable Citations