评估高级编程模型的性能与可移植性:Julia、Python/Numba 和 Kokkos 在百亿亿次节点上的表现
Evaluating performance and portability of high-level programming models: Julia, Python/Numba, and Kokkos on exascale nodes
AI总结:
本文在百亿亿次 HPC 节点上评估 Julia、Python/Numba 和 Kokkos 的性能与可移植性,发现 Julia 和 Kokkos 在 CPU 上接近 C/OpenMP,Julia 在 GPU 上接近 CUDA/HIP,而 Python/Numba 性能差距明显。
摘要:
我们探索了高级编程模型的性能与可移植性:基于 LLVM 的 Julia 和 Python/Numba,以及 Kokkos,在高性能计算(HPC)节点上的表现,这些节点包括 Frontier 测试平台 Crusher 系统上的 AMD Epyc CPU 和 MI250X 图形处理单元(GPU),以及橡树岭领导计算设施中 Wombat 系统上的 Ampere 基于 Arm 的 CPU 和 NVIDIA A100 GPU。我们将手写稠密矩阵乘法算法在 CPU 上的默认性能与供应商编译的 C/OpenMP 实现进行比较,并在每个 GPU 上与 CUDA 和 HIP 进行比较。我们并不专注于内核优化本身,而是选择这种朴素方法以模拟科学中的探索性工作,并作为性能下界,以隔离每种编程模型的影响。Julia 和 Kokkos 在 CPU 上的表现与 C/OpenMP 相当,而 Julia 实现在 GPU 上与 CUDA 和 HIP 具有竞争力。在 NVIDIA A100 GPU 上,Julia 的单精度和 Kokkos 存在性能差距,Python/Numba 在所有场景中均存在性能差距。我们还对半精度支持、生产力、性能可移植性指标和平台就绪度进行了评论。随着第一代百亿亿次系统的部署,我们期望为 HPC 中高级、高生产力语言的理解和发展方向做出贡献。
英文摘要:
We explore the performance and portability of the high-level programming models: the LLVM-based Julia and Python/Numba, and Kokkos on high-performance computing (HPC) nodes: AMD Epyc CPUs and MI250X graphical processing units (GPUs) on Frontier's test bed Crusher system and Ampere's Arm-based CPUs and NVIDIA's A100 GPUs on the Wombat system at the Oak Ridge Leadership Computing Facilities. We compare the default performance of a hand-rolled dense matrix multiplication algorithm on CPUs against vendor-compiled C/OpenMP implementations, and on each GPU against CUDA and HIP. Rather than focusing on the kernel optimization per-se, we select this naive approach to resemble exploratory work in science and as a lower-bound for performance to isolate the effect of each programming model. Julia and Kokkos perform comparably with C/OpenMP on CPUs, while Julia implementations are competitive with CUDA and HIP on GPUs. Performance gaps are identified on NVIDIA A100 GPUs for Julia's single precision and Kokkos, and for Python/Numba in all scenarios. We also comment on half-precision support, productivity, performance portability metrics, and platform readiness. We expect to contribute to the understanding and direction for high-level, high-productivity languages in HPC as the first-generation exascale systems are deployed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。