通过C++标准算法实现ExaHyPE中的GPU卸载
GPU Offloading in ExaHyPE Through C++ Standard Algorithms
摘要:
ISO C++17标准引入了\emph{parallel algorithms},这是一种并行编程模型,有望跨各种并行硬件(包括多核CPU、GPU和FPGA)实现可移植性。自2019年起,NVIDIA HPC SDK编译器套件支持多核CPU和GPU的这种编程模型。ExaHyPE是一个求解器引擎,用于求解复杂波动现象的双曲型偏微分方程。它支持多种数值方法,包括有限差分法和ADER-DG,并采用自适应网格细化,通过空间填充曲线实现动态负载均衡,以及基于任务的并行性和卸载到GPU。本研究端口ExaHyPE的任务块的有限的ISO C++并行算法编程模型,并比较其性能和可用性对一个OpenMP实现卸载通过OpenMP目标指令。这表明ISO C++对于像我们基于任务的AMR代码这样的非平凡应用程序是一个可行的编程模型。实现是裸的供应商特定的或非C++扩展。但是,它的速度要比它的OpenMP对应版本慢。\vspace{-1cm}
英文摘要:
The ISO C++17 standard introduces \emph{parallel algorithms}, a parallel programming model promising portability across a wide variety of parallel hardware including multi-core CPUs, GPUs, and FPGAs. Since 2019, the NVIDIA HPC SDK compiler suite supports this programming model for multi-core CPUs and GPUs. ExaHyPE is a solver engine for hyperbolic partial differential equations for complex wave phenomena. It supports multiple numerical methods including Finite Volumes and ADER-DG, and employs adaptive mesh refinement with dynamic load balancing via space-filling curves as well as task-based parallelism and offloading to GPUs. This study ports ExaHyPE's tasks over blocks of Finite Volumes to the ISO C++ parallel algorithms programming model, and compares its performance and usability against an OpenMP implementation with offloading via OpenMP target directives. It shows that ISO C++ is a feasible programming model for non-trivial applications like our task-based AMR code. The realisation is bare of vendor-specific or non-C++ extensions. It however is slower than its OpenMP counterpart. \vspace{-1cm}
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。