[Paper Review] GPU sample sort
This paper presents a highly optimized sample sort algorithm tailored for manycore GPUs, leveraging multi-way partitioning to outperform existing GPU sorting algorithms. It achieves up to 68% faster performance than Thrust's merge sort and over 2x speedup over GPU quicksort on uniformly distributed keys, while also surpassing radix sort for 64-bit integers by up to 2x on average.
In this paper, we present the design of a sample sort algorithm for manycore GPUs. Despite being one of the most efficient comparison-based sorting algorithms for distributed memory architectures its performance on GPUs was previously unknown. For uniformly distributed keys our sample sort is at least 25% and on average 68% faster than the best comparison-based sorting algorithm, GPU Thrust merge sort, and on average more than 2 times faster than GPU quicksort. Moreover, for 64-bit integer keys it is at least 63% and on average 2 times faster than the highly optimized GPU Thrust radix sort that directly manipulates the binary representation of keys. Our implementation is robust to different distributions and entropy levels of keys and scales almost linearly with the input size. These results indicate that multi-way techniques in general and sample sort in particular achieve substantially better performance than two-way merge sort and quicksort.
Motivation & Objective
- To design a sample sort algorithm optimized for manycore GPU architecures, where performance of sample sort was previously unexplored.
- To evaluate sample sort's performance relative to established GPU sorting algorithms like Thrust's merge sort and quicksort.
- To compare sample sort against highly optimized GPU radix sort for 64-bit integer keys.
- To assess robustness and scalability across varying data distributions and entropy levels.
Proposed method
- The algorithm uses multi-way partitioning based on sampling keys to determine split points, enabling efficient distribution of data across GPU thread blocks.
- It employs a sample-based selection of split points to minimize load imbalance and reduce global memory access during partitioning.
- The design integrates thread block-level sorting and parallel partitioning to maximize GPU occupancy and memory coalescing.
- The implementation is optimized for both uniform and non-uniform key distributions, ensuring consistent performance across data entropy levels.
- It leverages GPU-specific optimizations such as shared memory usage and warp-level primitives to accelerate comparisons and data movement.
Experimental results
Research questions
- RQ1How does sample sort perform on GPUs compared to established comparison-based sorting algorithms like merge sort and quicksort?
- RQ2Can sample sort outperform highly optimized GPU radix sort for 64-bit integer keys?
- RQ3How robust is sample sort to variations in data distribution and entropy levels?
- RQ4To what extent does the algorithm scale with increasing input size on GPU architectures?
Key findings
- For uniformly distributed keys, sample sort is at least 25% faster and on average 68% faster than Thrust's merge sort.
- Sample sort is more than 2x faster than GPU quicksort on average for uniformly distributed data.
- For 64-bit integer keys, sample sort is at least 63% faster and on average 2x faster than the optimized GPU Thrust radix sort.
- The algorithm demonstrates near-linear scalability with input size across different data distributions.
- Sample sort maintains high performance across diverse key distributions and entropy levels, showing strong robustness.
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.