Title
A high-performance sorting algorithm for multicore single-instruction multiple-data processors
Abstract
Many sorting algorithms have been studied in the past, but there are only a few algorithms that can effectively exploit both single-instruction multiple-data (SIMD) instructions and thread-level parallelism. In this paper, we propose a new high-performance sorting algorithm, called aligned-access sort (AA-sort), that exploits both the SIMD instructions and thread-level parallelism available on today's multicore processors. Our algorithm consists of two phases, an in-core sorting phase and an out-of-core merging phase. The in-core sorting phase uses our new sorting algorithm that extends combsort to exploit SIMD instructions. The out-of-core algorithm is based on mergesort with our novel vectorized merging algorithm. Both phases can take advantage of SIMD instructions. The key to high performance is eliminating unaligned memory accesses that would reduce the effectiveness of SIMD instructions in both phases. We implemented and evaluated the AA-sort on PowerPC 970MP and Cell Broadband Engine platforms. In summary, a sequential version of the AA-sort using SIMD instructions outperformed IBM's optimized sequential sorting library by 1.8 times and bitonic mergesort using SIMD instructions by 3.3 times on PowerPC 970MP when sorting 32 million random 32-bit integers. Also, a parallel version of AA-sort demonstrated better scalability with increasing numbers of cores than a parallel version of bitonic mergesort on both platforms. Copyright © 2011 John Wiley & Sons, Ltd.
Year
DOI
Venue
2012
10.1002/spe.1102
Softw., Pract. Exper.
Keywords
DocType
Volume
out-of-core algorithm,multicore single-instruction multiple-data processor,sequential version,aligned-access sort,thread-level parallelism,Cell Broadband Engine platform,SIMD instruction,bitonic mergesort,John Wiley,parallel version,optimized sequential
Journal
42
Issue
ISSN
Citations 
6
0038-0644
6
PageRank 
References 
Authors
0.46
17
4
Name
Order
Citations
PageRank
Hiroshi Inoue1161.47
Takao Moriyama2686.20
Hideaki Komatsu341034.00
Toshio Nakatani474156.80