Better GPU Hash Tables

Muhammad A. Awad, Saman Ashkiani, Serban D. Porumbescu, Martín Farach-Colton, John D. Owens
8/16/2021
cs.DS

Official code: owensgroup/BGHT (74 stars, C++, Apache-2.0, last commit 2025-07-02).

Abstract

We revisit the problem of building static hash tables on the GPU and design and build three bucketed hash tables that use different probing schemes. Our implementations are lock-free and offer efficient memory access patterns; thus, only the probing scheme is the factor affecting the performance of the hash table's different operations.

Show full abstract

Our results show that a bucketed cuckoo hash table that uses three hash functions (BCHT) outperforms alternative methods that use power-of-two choices, iceberg hashing, and a cuckoo hash table that uses a bucket size one. At high load factors as high as 0.99, BCHT enjoys an average probe count of 1.43 during insertion. Using three hash functions only, positive and negative queries require at most 1.39 and 2.8 average probes per key, respectively.

View on arXivView PDF

Code Implementations(1)

owensgroup/BGHTOfficial100%
Apache-2.0

BGHT: High-performance static GPU hash tables.

749C++, CudaOct 19, 20211 years agoApache-2.0
cuckoocudagpuhashinghashmap

Similar Papers

Cite this paper

@article{awad2021better,
  title  = {Better GPU Hash Tables},
  author = {Muhammad A. Awad and Saman Ashkiani and Serban D. Porumbescu and Martín Farach-Colton and John D. Owens},
  year   = {2021},
  eprint = {2108.07232},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.07232}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.07232.svg)](https://codeofpaper.com/paper/2108.07232)

Discussion