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

跨性能可移植框架实现多GPU科学计算迷你应用

Implementing Multi-GPU Scientific Computing Miniapps Across Performance Portable Frameworks

National High Technology Center(国家高级技术中心);Costa Rica Institute of Technology(哥斯达黎加理工学院);Argonne National Laboratory(阿贡国家实验室)

Johansell Villalobos, Josef Ruzicka, Silvio Rizzi

AI总结:

本文评估了Kokkos、OpenMP、RAJA和OCCA四个性能可移植框架在多GPU环境下的N体和结构化网格模拟表现,发现各框架性能差异显著,并指出未来需在归约算法、数据通信和内存管理等方面进行优化。

摘要:

百亿亿次(exascale)时代的科学计算需要更强的计算能力,以解决各个领域的复杂问题。随着异构计算架构的兴起,对厂商无关的性能可移植性框架的需求日益凸显。像Kokkos这样的库已成为使高性能计算应用能在不同硬件平台上以极少的代码改动高效执行的关键。沿着这一方向,本文提出了两个具有代表性的科学计算应用的初步求解时间结果:一个N体模拟和一个结构化网格模拟。这两个应用均采用分布式内存方法,并通过四个性能可移植框架实现硬件加速:Kokkos、OpenMP、RAJA和OCCA。在Polaris超级计算机的单节点上使用四个NVIDIA A100 GPU进行的实验显示,各框架之间存在显著的性能差异。对于小规模验证问题,OCCA表现出更快的执行时间,这可能是由于JIT编译,然而,由于缺乏优化的归约算法,在使用其开箱即用API时,可能会限制其在更大规模模拟中的可扩展性。OpenMP在结构化网格模拟中表现不佳,最可能的原因是节点间数据同步和通信效率低下。这些发现凸显了进一步优化的必要性,以最大化每个框架的能力。未来的工作将集中于增强归约算法、数据通信和内存管理,以及进行可扩展性研究和全面的统计分析,以评估和比较框架性能。

英文摘要:

Scientific computing in the exascale era demands increased computational power to solve complex problems across various domains. With the rise of heterogeneous computing architectures the need for vendor-agnostic, performance portability frameworks has been highlighted. Libraries like Kokkos have become essential for enabling high-performance computing applications to execute efficiently across different hardware platforms with minimal code changes. In this direction, this paper presents preliminary time-to-solution results for two representative scientific computing applications: an N-body simulation and a structured grid simulation. Both applications used a distributed memory approach and hardware acceleration through four performance portability frameworks: Kokkos, OpenMP, RAJA, and OCCA. Experiments conducted on a single node of the Polaris supercomputer using four NVIDIA A100 GPUs revealed significant performance variability among frameworks. OCCA demonstrated faster execution times for small-scale validation problems, likely due to JIT compilation, however its lack of optimized reduction algorithms may limit scalability for larger simulations while using its out of the box API. OpenMP performed poorly in the structured grid simulation most likely due to inefficiencies in inter-node data synchronization and communication. These findings highlight the need for further optimization to maximize each framework's capabilities. Future work will focus on enhancing reduction algorithms, data communication, memory management, as wells as performing scalability studies, and a comprehensive statistical analysis to evaluate and compare framework performance.

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

↑