Fast segmented sort on GPUs
Authors:
Open Access
- 14 June 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Abstract
Segmented sort, as a generalization of classical sort, orders a batch of independent segments in a whole array. Along with the wider adoption of manycore processors for HPC and big data applications, segmented sort plays an increasingly important role than sort. In this paper, we present an adaptive segmented sort mechanism on GPUs. Our mechanisms include two core techniques: (1) a differentiated method for different segment lengths to eliminate the irregularity caused by various workloads and thread divergence; and (2) a register-based sort method to support N-to-M data-thread binding and in-register data communication. We also implement a shared memory-based merge method to support non-uniform length chunk merge via multiple warps. Our segmented sort mechanism shows great improvements over the methods from CUB, CUSP and ModernGPU on NVIDIA K80-Kepler and TitanX-Pascal GPUs. Furthermore, we apply our mechanism on two applications, i.e., suffix array construction and sparse matrix-matrix multiplication, and obtain obvious gains over state-of-the-art implementations.Keywords
Funding Information
- H2020 Marie SkBodowska-Curie Actions (752321)
- National Science Foundation (IIS-1247693)
- Horizon 2020
This publication has 40 references indexed in Scilit:
- RETRACTED: Batched matrix computations on hardware accelerators based on GPUsThe International Journal of High Performance Computing Applications, 2015
- The Yin and Yang of processing data warehousing queries on GPU devicesProceedings of the VLDB Endowment, 2013
- Exposing Fine-Grained Parallelism in Algebraic Multigrid MethodsSIAM Journal on Scientific Computing, 2012
- HIGH PERFORMANCE AND SCALABLE RADIX SORTING: A CASE STUDY OF IMPLEMENTING DYNAMIC PARALLELISM FOR GPU COMPUTINGParallel Processing Letters, 2011
- Finding heaviest H -subgraphs in real weighted graphs, with applicationsACM Transactions on Algorithms, 2010
- Numerical linear algebra on emerging architectures: The PLASMA and MAGMA projectsJournal of Physics: Conference Series, 2009
- Fast parallel GPU-sorting using a hybrid algorithmJournal of Parallel and Distributed Computing, 2008
- Efficient implementation of sorting on multi-core SIMD CPU architectureProceedings of the VLDB Endowment, 2008
- Suffix Arrays: A New Method for On-Line String SearchesSIAM Journal on Computing, 1993
- Scans as primitive parallel operationsIEEE Transactions on Computers, 1989