WarpCore: A Library for fast Hash Tables on GPUs

Daniel Jünger, Robin Kobus, André Müller, Christian Hundt, Kai Xu +2 more
9/16/2020
cs.DC

Official code: sleeepyjack/warpcore (133 stars, C++, Apache-2.0, last commit 2025-10-14).

Abstract

Hash tables are ubiquitous. Properties such as an amortized constant time complexity for insertion and querying as well as a compact memory layout make them versatile associative data structures with manifold applications.

Show full abstract

The rapidly growing amount of data emerging in many fields motivated the need for accelerated hash tables designed for modern parallel architectures. In this work, we exploit the fast memory interface of modern GPUs together with a parallel hashing scheme tailored to improve global memory access patterns, to design WarpCore -- a versatile library of hash table data structures. Unique device-sided operations allow for building high performance data processing pipelines entirely on the GPU. Our implementation achieves up to 1.6 billion inserts and up to 4.3 billion retrievals per second on a single GV100 GPU thereby outperforming the state-of-the-art solutions cuDPP, SlabHash, and NVIDIA RAPIDS cuDF. This performance advantage becomes even more pronounced for high load factors of over $90\%$. To overcome the memory limitation of a single GPU, we scale our approach over a dense NVLink topology which gives us close-to-optimal weak scaling on DGX servers. We further show how WarpCore can be used for accelerating a real world bioinformatics application (metagenomic classification) with speedups of over two orders-of-magnitude against state-of-the-art CPU-based solutions. WC is written in C++/CUDA-C and is openly available at https://github.com/sleeepyjack/warpcore.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A Library for fast Hash Tables on GPUs

13313C++, CudaSep 16, 20201 years agoApache-2.0

Similar Papers

Cite this paper

@article{jnger2020warpcore,
  title  = {WarpCore: A Library for fast Hash Tables on GPUs},
  author = {Daniel Jünger and Robin Kobus and André Müller and Christian Hundt and Kai Xu and Weiguo Liu and Bertil Schmidt},
  year   = {2020},
  eprint = {2009.07914},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.07914}
}

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/2009.07914.svg)](https://codeofpaper.com/paper/2009.07914)

Discussion