Efficient implementation of sorting on multi-core SIMD CPU architecture
The DOI matches its Crossref record; 16 of the 16 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
The Art of Computer Programming
Knuth, D. E. (1968) · Cited by 16,320
The Art of Computer Programming
Whitesides, G. E. (1970) · Nuclear Science and Engineering · doi:10.13182/nse70-a19705 · Cited by 6,008
Sorting networks and their applications
Batcher, K. E. (1968) · Proceedings of the April 30--May 2, 1968, spring joint computer conference on - AFIPS '68 (Spring) · doi:10.1145/1468075.1468121 · Cited by 2,417 · cited 3×
“There are two commonly described merging networks [1] that can be implemented with the current set of SIMD instructions: • odd-even network • bitonic merge network Figure 1 depicts the odd-even merge network, while Figure 2 shows the bitonic merge network (both for merging sequences of length 4).”
BackgroundMethodInfluentialThe art of computer programming, volume 3: (2nd ed.) sorting and searching
Knuth, D. E. (1998) · Addison-Wesley Longman Publishing Co., Inc. eBooks · Cited by 1,421
Larrabee: a many-core x86 architecture for visual computing
Seiler, L., Carmean, D., Sprangle, E., Forsyth, T., Abrash, M., Dubey, P., Junkins, S., Lake, A., Sugerman, J., Cavin, R., et al. (2008) · ACM Transactions on Graphics · doi:10.1145/1360612.1360617 · Cited by 771
Self-citationAn 80-Tile 1.28TFLOPS Network-on-Chip in 65nm CMOS
Vangal, S., Howard, J., Ruhl, G., Dighe, S., Wilson, H., Tschanz, J., Finan, D., Iyer, P., Singh, A., Jacob, T., et al. (2007) · 2007 IEEE International Solid-State Circuits Conference. Digest of Technical Papers · doi:10.1109/isscc.2007.373606 · Cited by 633 · cited 1×
“For example, there are commercial products that have 8 cores on the same chip [10], and there is a research prototype with 80 cores [24].”
BackgroundDesigning efficient sorting algorithms for manycore GPUs
Satish, N., Harris, M., & Garland, M. (2009) · 2009 IEEE International Symposium on Parallel & Distributed Processing · doi:10.1109/ipdps.2009.5161005 · Cited by 571 · cited 2×
“Table 2 lists the best reported execution times4 (in seconds) for varying dataset sizes on various architectures( IBM Cell [7], Nvidia 8600 GTS [22], Nvidia 8800 GTX and Quadro FX 5600 [ 19 ], Intel 2-core Xeon with Quicksort [7], and IBM PowerPC 970MP [11]).”
BackgroundMethodScan Primitives for GPU Computing
Sengupta, S., Harris, M., Zhang, Y., & Owens, J. D. (2007) · eScholarship (California Digital Library) · doi:10.2312/eggh/eggh07/097-106 · Cited by 510 · cited 1×
“Recently added GPU capabilities like scattered writes, flexible comparisons and atomic operations on memory have enabled methods combining radixsort and mergesort to achieve faster performances on modern GPUs [19, 21, 22].”
MethodGPUTeraSort: high performance graphics co-processor sorting for large database management
Govindaraju, N., Gray, J., Kumar, R., & Manocha, D. (2006) · Proceedings of the 2006 ACM SIGMOD international conference on Management of data · doi:10.1145/1142473.1142511 · Cited by 418
Fast parallel GPU-sorting using a hybrid algorithm
Sintorn, E., & Assarsson, U. (2008) · Journal of Parallel and Distributed Computing · doi:10.1016/j.jpdc.2008.05.012 · Cited by 159 · cited 2×
“Table 2 lists the best reported execution times 4 (in seconds) for varying dataset sizes on various architectures( IBM Cell [7], Nvidia 8600 GTS [22], Nvidia 8800 GTX and Quadro FX 5600 [19], Intel 2-core Xeon with Quicksort [7], and IBM PowerPC 970MP [11]).”
BackgroundMethodChip multiprocessing and the cell broadband engine
Gschwind, M. K. (2006) · ACM International Conference on Computing Frontiers (CF) · doi:10.1145/1128022.1128023 · Cited by 133 · cited 1×
“For example, there are commercial products that have 8 cores on the same chip [10], and there is a research prototype with 80 cores [24].”
BackgroundSeiler, L., Carmean, D., Sprangle, E., Forsyth, T., Abrash, M., Dubey, P. K., Junkins, S., Lake, A., Sugerman, J., Cavin, R., et al. (2008) · ACM SIGGRAPH Conference Papers (SIGGRAPH) · doi:10.1145/1399504.1360617 · Cited by 129 · cited 4×
“Second in the future, we will have 256-bit wide SIMD instructions [12] and even wider [20].”
BackgroundMethodInfluentialSelf-citationGPU-ABiSort: optimal parallel sorting on stream architectures
Greb, A., & Zachmann, G. (2006) · IEEE International Parallel and Distributed Processing Symposium (IPDPS) · doi:10.5555/1898953.1898980 · Cited by 117
CellSort: high performance sorting on the cell processor
Gedik, B., Bordawekar, R. R., & Yu, P. S. (2007) · Cited by 114
AA-Sort: A New Parallel Sorting Algorithm for Multi-Core SIMD Processors
Inoue, H., Moriyama, T., Komatsu, H., & Nakatani, T. (2007) · International Conference on Parallel Architectures and Compilation Techniques · doi:10.1109/pact.2007.12 · Cited by 98
Martin, W. A. (1971) · ACM Computing Surveys · doi:10.1145/356593.356594 · Cited by 49
Cited by
Billion-scale similarity search with GPUs
Johnson, J., Douze, M., & Jegou, H. (2021) · IEEE Transactions on Big Data · doi:10.1109/tbdata.2019.2921572 · Cited by 4,228
Billion-scale similarity search with GPUs
Johnson, J., Douze, M., & Jégou, H. (2017) · arXiv · doi:10.48550/arxiv.1702.08734 · Cited by 4,140
“Sorting networks are commonly used on SIMD architectures [13], as they exploit vector parallelism.”
MethodDebunking the 100X GPU vs. CPU myth: an evaluation of throughput computing on CPU and GPU
Lee, V. W., Kim, C., Chhugani, J., Deisher, M., Kim, D., Nguyen, A. D., Satish, N., Smelyanskiy, M., Chennupaty, S., Hammarlund, P., et al. (2010) · Proceedings of the 37th annual international symposium on Computer architecture · doi:10.1145/1815961.1816021 · Cited by 640
Self-citationDesigning efficient sorting algorithms for manycore GPUs
Satish, N., Harris, M., & Garland, M. (2009) · 2009 IEEE International Symposium on Parallel & Distributed Processing · doi:10.1109/ipdps.2009.5161005 · Cited by 571
In-Memory Big Data Management and Processing: A Survey
Zhang, H., Chen, G., Ooi, B. C., Tan, K.-L., & Zhang, M. (2015) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2015.2427795 · Cited by 414
Metadata
- Authors
- Chhugani, J., Nguyen, A. D., Lee, V. W., Macy, W., Hagog, M., Chen, Y.-K., Baransi, A., Kumar, S., & Dubey, P.
- Venue
- Proceedings of the VLDB Endowment
- Published
- 2008-08
- Volume
- 1
- Issue
- 2
- Pages
- 1313-1324
- ISSN
- 2150-8097 (ISSN-L)
- OpenAlex
- W2166955231
- Cited by
- 232
- References
- 16
- FWCI
- 34.50
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.