[Paper Review] GPU Multisplit: an extended study of a parallel algorithm
This paper presents GPU Multisplit, a high-performance parallel algorithm for efficiently partitioning data into contiguous buckets based on user-defined key criteria. Using warp-synchronous programming, hierarchical subproblem decomposition, and optimized memory access patterns, it achieves 18.93 Gkeys/s on a GeForce GTX 1080, outperforming sorting-based alternatives and enabling efficient radix sort with 3.0 Gkeys/s throughput.
Multisplit is a broadly useful parallel primitive that permutes its input data into contiguous buckets or bins, where the function that categorizes an element into a bucket is provided by the programmer. Due to the lack of an efficient multisplit on GPUs, programmers often choose to implement multisplit with a sort. One way is to first generate an auxiliary array of bucket IDs and then sort input data based on it. In case smaller indexed buckets possess smaller valued keys, another way for multisplit is to directly sort input data. Both methods are inefficient and require more work than necessary: the former requires more expensive data movements while the latter spends unnecessary effort in sorting elements within each bucket. In this work, we provide a parallel model and multiple implementations for the multisplit problem. Our principal focus is multisplit for a small (up to 256) number of buckets. We use warp-synchronous programming models and emphasize warp-wide communications to avoid branch divergence and reduce memory usage. We also hierarchically reorder input elements to achieve better coalescing of global memory accesses. On a GeForce GTX 1080 GPU, we can reach a peak throughput of 18.93 Gkeys/s (or 11.68 Gpairs/s) for a key-only (or key-value) multisplit. Finally, we demonstrate how multisplit can be used as a building block for radix sort. In our multisplit-based sort implementation, we achieve comparable performance to the fastest GPU sort routines, sorting 32-bit keys (and key-value pairs) with a throughput of 3.0 G keys/s (and 2.1 Gpair/s).
Motivation & Objective
- To address the lack of an efficient multisplit primitive on GPUs, which forces programmers to use suboptimal sorting-based alternatives.
- To design a parallel multisplit algorithm that minimizes memory movement and avoids unnecessary intra-bucket sorting.
- To optimize memory access through hierarchical subproblem organization and warp-synchronous communication to reduce divergence and improve coalescing.
- To demonstrate the utility of multisplit as a building block for high-performance GPU primitives like radix sort.
- To achieve peak performance on modern GPUs, particularly for small numbers of buckets (up to 256).
Proposed method
- Employing a warp-synchronous programming model to eliminate branch divergence and reduce memory usage.
- Using a hierarchical divide-and-conquer approach with multiple levels of subproblem localization to minimize global memory operations.
- Reordering input elements hierarchically to improve coalescing of global memory accesses.
- Leveraging warp-wide primitives such as shuffle and ballot instructions to efficiently manage data flow and reduction within warps.
- Designing a multi-level localization scheme with parameters $L_0, L_1, ..., L_{\lambda-1}$ to balance local computation and global synchronization.
- Computing final permutation via recursive summation of bucket counts across hierarchical subproblems.
Experimental results
Research questions
- RQ1How can we design a multisplit algorithm that avoids the performance pitfalls of sorting-based implementations on GPUs?
- RQ2What role does hierarchical subproblem decomposition play in reducing global memory access and synchronization overhead?
- RQ3How do warp-synchronous primitives and memory access optimization impact throughput and scalability?
- RQ4Can multisplit be used as an efficient building block for other GPU primitives, such as radix sort?
- RQ5What is the theoretical and practical performance ceiling of a multisplit implementation on modern GPUs?
Key findings
- The proposed GPU Multisplit implementation achieves a peak throughput of 18.93 Gkeys/s (or 11.68 Gpairs/s) on a GeForce GTX 1080 GPU for key-only (or key-value) multisplit.
- The algorithm reduces unnecessary work by avoiding intra-bucket sorting, which is inherent in sorting-based multisplit approaches.
- By using hierarchical localization and warp-synchronous programming, the method minimizes global memory access and branch divergence.
- The multisplit-based radix sort implementation achieves 3.0 Gkeys/s (2.1 Gpairs/s) throughput, comparable to the fastest GPU sort routines.
- The hierarchical approach enables efficient use of local memory (registers and shared memory), reducing reliance on expensive global memory operations.
- The method demonstrates significant performance gains over sorting-based alternatives, especially for small bucket counts (≤256).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.