RISC-V 是否准备好用于大规模并行天体物理代码?
Is RISC-V Ready for Massively Parallel Astrophysical Codes?
AI总结:
评估三个天体物理代码在 RISC-V 处理器上的性能,发现相比 x86 和 ARM 有 3-9 倍降速,主要受限于内存带宽、缓存、向量单元和编译器自动向量化能力。
摘要:
我们展示了三个成熟的天体物理生产代码(iPIC3D、PLUTO 和 OpenGGCM)在 Sophgo SG2044 RISC-V 处理器(Monte Cimone 集群的一部分)上的性能和可移植性评估,并与 AMD EPYC 9554(x86)和 NVIDIA GH200 Grace(ARM)系统进行了比较。这些应用分别代表内存受限、计算受限和混合工作负载。数值正确性在所有平台上得到验证,确认了可移植性。RISC-V 表现出持续较低的性能,相对于 x86 降速约 3-6 倍,相对于 ARM 降速约 5-9 倍。差距主要源于有限的内存带宽、共享缓存限制、更窄的 128 位向量单元和较低的时钟频率,但也包括 GNU 编译器套件较不成熟的自动向量化能力。内存受限内核受影响最大,早期带宽饱和和 L2 缓存争用在更高线程数下降低了可扩展性。混合 MPI+OpenMP 配置揭示了内存争用和通信开销之间的权衡,中间配置实现了最佳性能。这些结果表明 RISC-V 能够支持科学工作负载;然而,在硬件和编译器技术方面,特别是在自动向量化方面,还需要进一步改进才能达到有竞争力的性能。
英文摘要:
We present a performance and portability evaluation of three well-established astrophysical production codes, namely iPIC3D, PLUTO, and OpenGadget3, on a Sophgo SG2044 RISC-V processor (part of the Monte Cimone cluster), with comparisons to AMD EPYC 9554 (x86) and NVIDIA GH200 Grace (ARM) systems. These applications represent memory-bound, compute-bound, and hybrid workloads, respectively. Numerical correctness is verified across all platforms, confirming portability. RISC-V shows consistently lower performance, with slowdowns of about $3-6\times$ relative to x86 and $5-9\times$ relative to ARM. The gap is mainly due to limited memory bandwidth, shared cache constraints, narrower 128-bit vector units, and lower clock frequency, but also less-mature auto-vectorization capability of the GNU compiler suite. Memory-bound kernels are the most affected, where early bandwidth saturation and L2 cache contention reduce scalability at higher thread counts. Hybrid MPI+OpenMP configurations reveal a trade-off between memory contention and communication overhead, with intermediate configurations achieving the best performance. These results suggest that RISC-V is capable of supporting scientific workloads; however, additional improvements in both hardware and compiler technology, particularly in auto-vectorization, are required to achieve competitive performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。