Intel 多核 CPU 上的 CloverLeaf:一项关于写分配规避的案例研究
CloverLeaf on Intel Multi-Core CPUs: A Case Study in Write-Allocate Evasion
AI总结:
本文研究 CloverLeaf 在 Intel Xeon CPU 上进程数为质数时的性能异常,通过数据流量模型与微基准测试定位其源于 SpecI2M 写分配规避失效,并排除通信与负载等因素。
摘要:
在本文中,我们在近期的 Intel Xeon“Ice Lake”和“Sapphire Rapids”服务器 CPU 上分析了来自 SPEChpc 2021 基准测试套件的 CloverLeaf 代码的仅 MPI 版本。我们观察到,当进程数为质数时,性能会出现异常下降。为研究这一效应,我们为每个类模板热点循环建立了基于第一性原理的数据流量模型。借助应用程序测量结果和用于研究内存数据流量行为的微基准测试,我们能够将这些性能下降与 SpecI2M 联系起来;SpecI2M 是当前 Intel CPU 中的一项新的写分配规避特性。对于串行和全节点情形,我们能够以仅百分之几的误差解析预测内存数据量。我们发现,如果进程数为质数,SpecI2M 将无法正常工作,其原因可归结于在这种情况下由一维域分解产生的较短内层循环。我们还排除了质数效应的其他可能原因,例如层条件被破坏、MPI 通信开销和负载不均衡。
英文摘要:
In this paper we analyze the MPI-only version of the CloverLeaf code from the SPEChpc 2021 benchmark suite on recent Intel Xeon "Ice Lake" and "Sapphire Rapids" server CPUs. We observe peculiar breakdowns in performance when the number of processes is prime. Investigating this effect, we create first-principles data traffic models for each of the stencil-like hotspot loops. With application measurements and microbenchmarks to study memory data traffic behavior, we can connect the breakdowns to SpecI2M, a new write-allocate evasion feature in current Intel CPUs. For serial and full-node cases we are able to predict the memory data volume analytically with an error of a few percent. We find that if the number of processes is prime, SpecI2M fails to work properly, which we can attribute to short inner loops emerging from the one-dimensional domain decomposition in this case. We can also rule out other possible causes of the prime number effect, such as breaking layer conditions, MPI communication overhead, and load imbalance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。