更快速的AVX2、AVX-512和ASIMD位置人口计数
Faster Positional-Population Counts for AVX2, AVX-512, and ASIMD
AI总结:
该研究提出了一种基于SIMD技术的快速位置人口计数算法,适用于AVX2、AVX-512和ASIMD指令集,提升了处理小数组和非对齐数据的效率。
摘要:
pospopcnt()操作用于统计数组中每个w位被设置的次数。生物信息学、数据库工程和数字处理等领域有各种应用。在Klarqvist等人之前的工作基础上,我们展示了如何利用SIMD技术快速计算位置人口计数,从第一个字节开始就能获得良好的性能,接近内存受限速度,对于输入数组最小为4 KiB的情况。改进包括更优化的算法结构、对对齐和非常短数组的更好处理,以及更快的位并行中间结果积累。我们提供了通用算法描述以及针对各种SIMD指令集扩展的实现,包括Intel AVX2、AVX-512和ARM ASIMD,并讨论了我们的算法在其他平台上的适应性。
英文摘要:
The positional population count operation pospopcnt() counts for an array of w-bit words how often each of the w bits was set. Various applications in bioinformatics, database engineering, and digital processing exist. Building on earlier work by Klarqvist et al., we show how positional population counts can be rapidly computed using SIMD techniques with good performance from the first byte, approaching memory-bound speeds for input arrays of as little as 4 KiB. Improvements include an improved algorithm structure, better handling of unaligned and very short arrays, as well as faster bit-parallel accumulation of intermediate results. We provide a generic algorithm description as well as implementations for various SIMD instruction set extensions, including Intel AVX2, AVX-512, and ARM ASIMD, and discuss the adaption of our algorithm to other platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。