Loading…

Challenges Porting a C++ Template-Metaprogramming Abstraction Layer to Directive-based Offloading

HPC systems employ a growing variety of compute accelerators with different architectures and from different vendors. Large scientific applications are required to run efficiently across these systems but need to retain a single code-base in order to not stifle development. Directive-based offloadin...

Full description

Saved in:
Bibliographic Details
Published in:arXiv.org 2022-01
Main Authors: Kelling, Jeffrey, Bastrakov, Sergei, Debus, Alexander, Kluge, Thomas, Leinhauser, Matt, Pausch, Richard, Steiniger, Klaus, Stephan, Jan, Widera, René, Young, Jeff, Bussmann, Michael, Chandrasekaran, Sunita, Juckeland, Guido
Format: Article
Language:English
Subjects:
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:HPC systems employ a growing variety of compute accelerators with different architectures and from different vendors. Large scientific applications are required to run efficiently across these systems but need to retain a single code-base in order to not stifle development. Directive-based offloading programming models set out to provide the required portability, but, to existing codes, they themselves represent yet another API to port to. Here, we present our approach of porting the GPU-accelerated particle-in-cell code PIConGPU to OpenACC and OpenMP target by adding two new backends to its existing C++-template metaprogramming-based offloading abstraction layer alpaka and avoiding other modifications to the application code. We introduce our approach in the face of conflicts between requirements and available features in the standards as well as practical hurdles posed by immature compiler support.
ISSN:2331-8422
DOI:10.48550/arxiv.2110.08650