arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.08275astro-ph.IMastro-ph.COastro-ph.GAcs.DS
收藏

Corrfunc:使用AVX512F SIMD内函数实现快速关联函数

Corrfunc: Blazing fast correlation functions with AVX512F SIMD Intrinsics

Manodeep Sinha, Lehman H. Garrison

摘要:

关联函数被广泛用于河外天体物理学中,以深入了解星系如何占据暗物质晕,并在宇宙学中对宇宙学参数进行严格的约束。关联函数基本上需要计算两组点之间的成对分离,然后计算分离的直方图。Corrfunc是一个现有的开源、高性能软件包,用于有效地计算大量的关联函数。在本文中,我们将讨论Corrfunc中的SIMD AVX512F内核,它能够一次处理16个浮点数或8个双精度浮点数。最新的手动实现的Corrfunc AVX 512 F内核显示了高达$\sim 4\times$相对于编译器生成的双精度计算代码的加速。AVX 512 F内核显示出相对于AVX内核的$\sim 1.6\times$加速,并且与理论最大值$2\times$相比毫不逊色。此外,通过修剪具有太大的最小可能间隔的对,我们在所有SIMD内核上实现了$\sim 5-10\%$加速。这样的加速突出了使用SIMD向量内部函数显式编程的重要性,用于编译器无法有效向量化的复杂计算。Corrfunc可在https://github.com/manodeep/Corrfunc/上公开获得。

英文摘要:

Correlation functions are widely used in extra-galactic astrophysics to extract insights into how galaxies occupy dark matter halos and in cosmology to place stringent constraints on cosmological parameters. A correlation function fundamentally requires computing pair-wise separations between two sets of points and then computing a histogram of the separations. Corrfunc is an existing open-source, high-performance software package for efficiently computing a multitude of correlation functions. In this paper, we will discuss the SIMD AVX512F kernels within Corrfunc, capable of processing 16 floats or 8 doubles at a time. The latest manually implemented Corrfunc AVX512F kernels show a speedup of up to $\sim 4\times$ relative to compiler-generated code for double-precision calculations. The AVX512F kernels show $\sim 1.6\times$ speedup relative to the AVX kernels and compare favorably to a theoretical maximum of $2\times$. In addition, by pruning pairs with too large of a minimum possible separation, we achieve a $\sim 5-10\%$ speedup across all the SIMD kernels. Such speedups highlight the importance of programming explicitly with SIMD vector intrinsics for complex calculations that can not be efficiently vectorized by compilers. Corrfunc is publicly available at https://github.com/manodeep/Corrfunc/.

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

↑