从合并框架到合并恒星:使用HPX、Kokkos和SIMD类型的经验
From Merging Frameworks to Merging Stars: Experiences using HPX, Kokkos and SIMD Types
AI总结:
本文针对Octo-Tiger恒星合并代码在A64FX等CPU上的SIMD向量化问题,添加std::experimental::simd选项和SVE后端,修正Kokkos内核,在三种CPU上测试获得良好加速,但EPYC上存在扩展性问题。
摘要:
Octo-Tiger是一个用于恒星合并的大规模三维AMR代码,它结合了HPX、Kokkos和显式SIMD类型,旨在为广泛的异构硬件实现性能可移植性。然而,在A64FX CPU上,我们遇到了几个缺失的部分,这些问题导致SIMD向量化出现问题,从而阻碍了性能。因此,我们在Octo-Tiger的Kokkos内核中添加了std::experimental::simd作为选项,与Kokkos SIMD一起使用,并进一步添加了新的SVE(可扩展向量扩展)SIMD后端。此外,我们修正了Octo-Tiger流体求解器中Kokkos内核缺失的SIMD实现。我们通过在三种不同的CPU上运行Octo-Tiger来测试我们的更改:A64FX、Intel Icelake和AMD EPYC CPU,评估SIMD加速和节点级性能。我们在A64FX CPU上获得了良好的SIMD加速,在另外两个CPU平台上也有显著的加速。然而,我们在EPYC CPU上也遇到了扩展性问题。
英文摘要:
Octo-Tiger, a large-scale 3D AMR code for the merger of stars, uses a combination of HPX, Kokkos and explicit SIMD types, aiming to achieve performance-portability for a broad range of heterogeneous hardware. However, on A64FX CPUs, we encountered several missing pieces, hindering performance by causing problems with the SIMD vectorization. Therefore, we add std::experimental::simd as an option to use in Octo-Tiger's Kokkos kernels alongside Kokkos SIMD, and further add a new SVE (Scalable Vector Extensions) SIMD backend. Additionally, we amend missing SIMD implementations in the Kokkos kernels within Octo-Tiger's hydro solver. We test our changes by running Octo-Tiger on three different CPUs: An A64FX, an Intel Icelake and an AMD EPYC CPU, evaluating SIMD speedup and node-level performance. We get a good SIMD speedup on the A64FX CPU, as well as noticeable speedups on the other two CPU platforms. However, we also experience a scaling issue on the EPYC CPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。