将C++模板元编程抽象层移植到基于指令的卸载的挑战
Challenges Porting a C++ Template-Metaprogramming Abstraction Layer to Directive-based Offloading
摘要:
HPC系统采用越来越多的具有不同架构和来自不同供应商的计算加速器。大型科学应用程序需要在这些系统上高效运行,但需要保留单个代码库,以免扼杀开发。基于指令的卸载编程模型旨在提供所需的可移植性,但是对于现有代码来说,它们本身代表了另一个要移植的API。在这里,我们提出了我们的方法,通过添加两个新的后端到现有的C++模板的元编程为基础的卸载抽象层alpaka和避免其他修改的应用程序代码的GPU加速的粒子在细胞中的代码PIConGPU的OpenACC和OpenMP目标。我们介绍我们的方法,在面对的要求和可用的功能之间的冲突,以及不成熟的编译器支持所带来的实际障碍的标准。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。