初步报告:在用于HPC的AMD GPU上对StdPar实现的初步评估
Preliminary report: Initial evaluation of StdPar implementations on AMD GPUs for HPC
AI总结:
评估AMD GPU上StdPar实现性能,对比HIP等异构模型,并提出基于USM缺页中断的主机端用户空间解决方案以提升性能。
摘要:
近期,AMD平台尚不支持将C++17 PSTL (StdPar) 程序卸载至GPU。我们先前的工作强调了StdPar如何在NVIDIA和Intel GPU平台上实现良好性能。在那项工作中,我们肯定了AMD过去的努力(如HCC),但遗憾的是它已被弃用且不支持更新的硬件平台。AMD、Codeplay和AdaptiveCpp(前身为hipSYCL或OpenSYCL)的最新进展为StdPar程序在AMD GPU上运行提供了多种路径。这份非正式报告讨论了我们对目前可用的AMD GPU StdPar实现的经验和评估。我们使用包含多种异构编程模型(包括StdPar)移植版本的HPC mini-apps套件进行基准测试。随后,我们使用所有可用的StdPar编译器,将StdPar的性能与AMD GPU支持的当代异构编程模型(HIP、OpenCL、Thrust、Kokkos、OpenMP、SYCL)进行比较。在适当之处,我们讨论了评估期间遇到的问题及应用的变通方案。最后,本报告讨论的StdPar模型很大程度上依赖于统一共享内存(USM)性能,而极少数AMD GPU对该特性提供适当支持。因此,本报告展示了一种概念验证的主机端用户空间缺页中断解决方案,适用于使用HIP API的模型。我们使用同一套基准测试讨论了该方案所取得的性能提升。
英文摘要:
Recently, AMD platforms have not supported offloading C++17 PSTL (StdPar) programs to the GPU. Our previous work highlights how StdPar is able to achieve good performance across NVIDIA and Intel GPU platforms. In that work, we acknowledged AMD's past effort such as HCC, which unfortunately is deprecated and does not support newer hardware platforms. Recent developments by AMD, Codeplay, and AdaptiveCpp (previously known as hipSYCL or OpenSYCL) have enabled multiple paths for StdPar programs to run on AMD GPUs. This informal report discusses our experiences and evaluation of currently available StdPar implementations for AMD GPUs. We conduct benchmarks using our suite of HPC mini-apps with ports in many heterogeneous programming models, including StdPar. We then compare the performance of StdPar, using all available StdPar compilers, to contemporary heterogeneous programming models supported on AMD GPUs: HIP, OpenCL, Thrust, Kokkos, OpenMP, SYCL. Where appropriate, we discuss issues encountered and workarounds applied during our evaluation. Finally, the StdPar model discussed in this report largely depends on Unified Shared Memory (USM) performance and very few AMD GPUs have proper support for this feature. As such, this report demonstrates a proof-of-concept host-side userspace pagefault solution for models that use the HIP API. We discuss performance improvements achieved with our solution using the same set of benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。