arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.06474cs.DCcs.PL
收藏

C++中的mdspan:将性能可移植特性集成到国际语言标准中的案例研究

mdspan in C++: A Case Study in the Integration of Performance Portable Features into International Language Standards

D. S. Hollman, Bryce Adelstein Lelbach, H. Carter Edwards, Mark Hoemmen, Daniel Sunderland, Christian R. Trott

摘要:

多维数组在高性能计算(HPC)中无处不在,但它们在C++语言标准中的缺失是其用于HPC的长期和众所周知的限制。本文描述了mdspan的设计和实现,mdspan是一个建议的C++标准多维数组视图(计划包含在C++23中)。该提案在很大程度上受到Kokkos项目中所做工作的启发,Kokkos项目是许多HPC机构部署的C++性能可移植编程模型,用于为exascale级超级计算系统准备代码库。本文描述了mdspan的最终设计,经过五年的过程,在C++社区达成共识。特别是,我们将阐述该设计如何解决性能可移植编程的一些核心挑战,以及其定制点如何允许无缝扩展到目前C++标准未解决的领域,但在当今系统的异构计算世界中至关重要。最后,我们提供了当前形式的提案的生产质量实现。这项工作包括几个基准,旨在展示现代设计的零开销性质的实现。

英文摘要:

Multi-dimensional arrays are ubiquitous in high-performance computing (HPC), but their absence from the C++ language standard is a long-standing and well-known limitation of their use for HPC. This paper describes the design and implementation of mdspan, a proposed C++ standard multidimensional array view (planned for inclusion in C++23). The proposal is largely inspired by work done in the Kokkos project---a C++ performance-portable programming model deployed by numerous HPC institutions to prepare their code base for exascale-class supercomputing systems. This paper describes the final design of mdspan after a five-year process to achieve consensus in the C++ community. In particular, we will lay out how the design addresses some of the core challenges of performance-portable programming, and how its customization points allow a seamless extension into areas not currently addressed by the C++ Standard but which are of critical importance in the heterogeneous computing world of today's systems. Finally, we have provided a production-quality implementation of the proposal in its current form. This work includes several benchmarks of this implementation aimed at demonstrating the zero-overhead nature of the modern design.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑