Asymptotically Optimal Merging on ManyCore GPUs
- Authors
- Kutzner, Arne; Kim, Pok-Son; Park, Won-Kwang
- Issue Date
- Dec-2012
- Publisher
- IEICE-INST ELECTRONICS INFORMATION COMMUNICATIONS ENG
- Keywords
- parallel algorithms; GPGPU; complexity; merging; sorting
- Citation
- IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, v.E95D, no.12, pp.2769 - 2777
- Indexed
- SCOPUS
- Journal Title
- IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS
- Volume
- E95D
- Number
- 12
- Start Page
- 2769
- End Page
- 2777
- URI
- https://scholarworks.bwise.kr/hanyang/handle/2021.sw.hanyang/164074
- DOI
- 10.1587/transinf.E95.D.2769
- ISSN
- 1745-1361
- Abstract
- We propose a family of algorithms for efficiently merging on contemporary GPUs, so that each algorithm requires O(m log(n/m + 1)) element comparisons, where m and n are the sizes of the input sequences with m <= n. According to the lower bounds for merging all proposed algorithms are asymptotically optimal regarding the number of necessary comparisons. First we introduce a parallely structured algorithm that splits a merging problem of size 2(l) into 2(i) subproblems of size 2(l-i), for some arbitrary i with (0 <= i <= l). This algorithm represents a merger for i = 1 but it is rather inefficient in this case. The efficiency is boosted by moving to a two stage approach where the splitting process stops at some predetermined level and transfers control to several parallely operating block-mergers. We formally prove the asymptotic optimality of the splitting process and show that for symmetrically sized inputs our approach delivers up to 4 times faster runtimes than the thrust: :merge function that is part of the Thrust library. For assessing the value of our merging technique in the context of sorting we construct and evaluate a MergeSort on top of it. In the context of our benchmarking the resulting MergeSort clearly outperforms the MergeSort implementation provided by the Thrust library as well as Cederman's GPU optimized variant of QuickSort.
- Files in This Item
-
Go to Link
- Appears in
Collections - 서울 공과대학 > 서울 정보시스템학과 > 1. Journal Articles
Items in ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.