arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.01784cs.DCcs.DS
收藏

Onesweep:一种快速的GPU最低有效位基数排序算法

Onesweep: A Faster Least Significant Digit Radix Sort for GPUs

Andy Adinets, Duane Merrill

摘要:

我们提出了Onesweep,一个最低有效位(LSD)基数排序算法的大型GPU排序问题驻留在全局内存。我们的并行算法采用了一种方法,单程前缀和,只需要~2n的全球读/写操作的每一个数字装箱迭代。与当代GPU基数排序实现相比,这表现出最后一级内存流量的显着减少,其中数字分箱的每次迭代需要通过数据集两次,总计约3 n次全局内存操作。在NVIDIA A100 GPU上,我们的方法在排序256 M随机32位密钥时达到29.4 GKey/s。与当前最先进的GPU LSD基数排序CUB相比,我们的方法提供了约1.5倍的加速比。对于具有不同分布的32位密钥,与HRS(当前最先进的GPU MSD基数排序)相比,我们的方法提供了更一致的性能,并且在几乎所有情况下都优于HRS。

英文摘要:

We present Onesweep, a least-significant digit (LSD) radix sorting algorithm for large GPU sorting problems residing in global memory. Our parallel algorithm employs a method of single-pass prefix sum that only requires ~2n global read/write operations for each digit-binning iteration. This exhibits a significant reduction in last-level memory traffic versus contemporary GPU radix sorting implementations, where each iteration of digit binning requires two passes through the dataset totaling ~3n global memory operations. On the NVIDIA A100 GPU, our approach achieves 29.4 GKey/s when sorting 256M random 32-bit keys. Compared to CUB, the current state-of-the-art GPU LSD radix sort, our approach provides a speedup of ~1.5x. For 32-bit keys with varied distributions, our approach provides more consistent performance compared to HRS, the current state-of-the-art GPU MSD radix sort, and outperforms it in almost all cases.

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

↑