arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.06132physics.flu-dyncs.NAcs.PFmath.NA
收藏

通量重构的缓存分块:向Navier-Stokes方程与抗混叠的扩展

Cache Blocking for Flux Reconstruction: Extension to Navier-Stokes Equations and Anti-aliasing

Semih Akkurt, Freddie Witherden, Peter Vincent

AI总结:

本文在PyFR中为混合网格上的Navier-Stokes方程引入缓存分块,以替代核融合并高效实现抗混叠插值算子的张量积分解,理论建模与Taylor-Green涡基准测试表明相对PyFR v1.11.0可获得1.67至3.67倍加速。

摘要:

本文在PyFR中针对CPU上的混合网格,为带抗混叠支持的Navier-Stokes方程实现了缓存分块。特别地,缓存分块被用作核融合的替代方案,以消除主存层级上核之间不必要的数据移动。具体而言,交换数据的核被分组在一起,然后这些组在适合每核私有数据缓存的域的小子区域上执行。此外,缓存分块还被用于高效实现与抗混叠相关的插值算子的张量积分解。通过使用缓存分块,稀疏因子应用之间的中间结果被存储在每核私有数据缓存中,从而避免了大量来自主存的数据移动。为了评估性能收益,本文建立了一个理论模型,并使用可压缩三维Taylor-Green涡测试算例在六面体和棱柱网格上、采用三阶和四阶解多项式对实现进行了基准测试。基于理论模型的预期性能收益范围为1.99至2.62,与PyFR v1.11.0相比,实际获得的加速比为1.67至3.67。

英文摘要:

In this article, cache blocking is implemented for the Navier Stokes equations with anti-aliasing support on mixed grids in PyFR for CPUs. In particular, cache blocking is used as an alternative to kernel fusion to eliminate unnecessary data movements between kernels at the main memory level. Specifically, kernels that exchange data are grouped together, and these groups are then executed on small sub-regions of the domain that fit in per-core private data cache. Additionally, cache blocking is also used to efficiently implement a tensor product factorisation of the interpolation operators associated with anti-aliasing. By using cache blocking, the intermediate results between application of the sparse factors are stored in per-core private data cache, and a significant amount of data movement from main memory is avoided. In order to assess the performance gains a theoretical model is developed, and the implementation is benchmarked using a compressible 3D Taylor-Green vortex test case on both hexahedral and prismatic grids, with third- and forth-order solution polynomials. The expected performance gains based on the theoretical model range from 1.99 to 2.62, and the speedups obtained in practice range from 1.67 to 3.67 compared to PyFR v1.11.0.

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

↑