The Celerity High-level API: C++20 for Accelerator Clusters

Author:

Thoman Peter,Tischler Florian,Salzmann Philip,Fahringer Thomas

Abstract

AbstractProviding convenient APIs and notations for data parallelism which remain accessible for programmers while still providing good performance has been a long-term goal of researchers as well as language and library designers. C++20 introduces ranges and views, as well as the composition of operations on them using a concise syntax, but the efficient implementation of these library features is restricted to CPUs. We present the Celerity High-level API, which makes similarly concise mechanisms applicable to GPUs and accelerators, and even distributed memory clusters of GPUs. Crucially, we achieve this very high level of abstraction without a significant negative impact on performance compared to a lower-level implementation, and without introducing any non-standard toolchain components or compilers, by implementing a C++ library infrastructure on top of the Celerity system. This is made possible by two central API design and implementation strategies, which form the core of our contribution. Firstly, gathering as much information as possible at compile-time and using metaprogramming techniques to automatically fuse several distinctly formulated processing steps into a single accelerator kernel invocation. And secondly, leveraging C++20 “Concepts” in order to avoid type erasure, allowing for highly efficient code generation. We have evaluated our approach quantitatively in a comparison to lower-level manual implementations of several benchmarks, demonstrating its low overhead. Additionally, we investigated the individual performance impact of our specific optimizations and design choices, illustrating the advantages afforded by a Concepts-based approach.

Funder

University of Innsbruck and Medical University of Innsbruck

Publisher

Springer Science and Business Media LLC

Subject

Information Systems,Theoretical Computer Science,Software

Reference31 articles.

1. Bohr, M.: A 30 year retrospective on Dennard’s mosfet scaling paper. IEEE Solid-State Circuits Soc. Newslett. 12(1), 11–13 (2007)

2. The Top 500 List (2020). http://www.top500.org

3. Dagum, L., Menon, R.: Openmp: an industry standard API for shared-memory programming. Comput. Sci. Eng., IEEE 5(1), 46–55 (1998)

4. Group, K.O.W.: The opencl specification, version 2.0. Technical report (2014)

5. Forum, M.P.I.: MPI: a message-passing interface standard. Technical Report, Knoxville, TN, USA (1994)

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Collection skeletons: Declarative abstractions for data collections;Journal of Systems and Software;2024-07

2. Optimizing Three-Dimensional Stencil-Operations on Heterogeneous Computing Environments;International Journal of Parallel Programming;2024-06-21

3. Tunable and Portable Extreme-Scale Drug Discovery Platform at Exascale;Proceedings of the 20th ACM International Conference on Computing Frontiers;2023-05-09

4. Declarative Data Flow in a Graph-Based Distributed Memory Runtime System;International Journal of Parallel Programming;2022-12-26

5. Collection Skeletons: Declarative Abstractions for Data Collections;Proceedings of the 15th ACM SIGPLAN International Conference on Software Language Engineering;2022-11-29

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3