arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.09255cs.DS
收藏

GPU上的紧凑并行哈希表

Compact Parallel Hash Tables on the GPU

Steef Hegeman, Daan Wöltgens, Anton Wijs, Alfons Laarman

AI总结:

本文研究GPU上紧凑哈希表设计,提出紧凑桶式布谷鸟哈希和紧凑冰山哈希两种方案,并通过CUDA实现与基准测试证明紧凑性可显著提升查找和插入吞吐量,同时保持动态操作性能。

摘要:

在GPU上,哈希表操作速度在很大程度上取决于缓存行效率,因此最先进的哈希方案将表划分为缓存行大小的桶。这引出了一个问题:是否可以通过增加此类桶中可容纳的条目数来进一步提高性能。已知的紧凑哈希技术尚未适应大规模并行环境,也尚未在GPU上进行评估。我们考虑了一种桶式布谷鸟哈希的紧凑版本,以及一种适用于GPU的紧凑冰山哈希版本。我们从理论角度讨论了这些表,并在CUDA中提供了两种方案的开源实现以进行对比基准测试。在性能方面,最先进的布谷鸟哈希在查找和插入上受益于紧凑性(大多数实验显示吞吐量至少提高10-20%),而冰山表受益显著,达到与紧凑布谷鸟哈希相当的程度——同时支持高性能的动态操作。

英文摘要:

On the GPU, hash table operation speed is determined in large part by cache line efficiency, and state-of-the-art hashing schemes thus divide tables into cache line-sized buckets. This raises the question whether performance can be further improved by increasing the number of entries that fit in such buckets. Known compact hashing techniques have not yet been adapted to the massively parallel setting, nor have they been evaluated on the GPU. We consider a compact version of bucketed cuckoo hashing, and a version of compact iceberg hashing suitable for the GPU. We discuss the tables from a theoretical perspective, and provide an open source implementation of both schemes in CUDA for comparative benchmarking. In terms of performance, the state-of-the-art cuckoo hashing benefits from compactness on lookups and insertions (most experiments show at least 10-20% increase in throughput), and the iceberg table benefits significantly, to the point of being comparable to compact cuckoo hashing--while supporting performant dynamic operation.

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

↑