Efficient implementation of sorting on multi-core SIMD CPU architecture
Jatin Chhugani, Anthony D. Nguyen, Victor W. Lee et al. · Proceedings of the VLDB Endowment · 2008
Sorting a list of input numbers is one of the most fundamental problems in the field of computer science in general and high-throughput database applications in particular. Although literature abounds with various flavors of sorting algorithms, different architectures call for customized implementations to achieve faster sorting times. This paper presents an efficient implementation and detailed analysis of MergeSort on current CPU architectures. Our SIMD implementation with 128-bit SSE is 3.3X faster than the scalar version. In addition, our algorithm performs an efficient multiway merge, and is not constrained by the memory bandwidth. Our multi-threaded, SIMD implementation sorts 64 million floating point numbers in less than 0.5 seconds on a commodity 4-core Intel processor. This measured performance compares favorably with all previously published results. Additionally, the paper demonstrates performance scalability of the proposed sorting algorithm with respect to certain salient architectural features of modern chip multiprocessor (CMP) architectures, including SIMD width and core-count. Based on our analytical models of various architectural configurations, we see excellent scalability of our implementation with SIMD width scaling up to 16X wider than current SSE width of 128-bits, and CMP core-count scaling well beyond 32 cores. Cycle-accurate simulation of Intel's upcoming x86 many-core Larrabee architecture confirms scalability of our proposed algorithm.
Cited by 232 works. doi:10.14778/1454159.1454171
Authors
References
- The Art of Computer Programming
- The Art of Computer Programming
- Sorting networks and their applications
- The art of computer programming, volume 3: (2nd ed.) sorting and searching
- An 80-Tile 1.28TFLOPS Network-on-Chip in 65nm CMOS
- Larrabee
- Designing efficient sorting algorithms for manycore GPUs
- GPUTeraSort
- Sorting
- Chip multiprocessing and the cell broadband engine