首页> 外文期刊>IEICE Transactions on Information and Systems >Asymptotically Optimal Merging on ManyCore GPUs
【24h】

Asymptotically Optimal Merging on ManyCore GPUs

机译:在ManyCore GPU上渐近最优合并

获取原文
获取原文并翻译 | 示例
           

摘要

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 =l 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.
机译:我们提出了一系列算法,可在现代GPU上有效合并,因此每种算法都需要O(m log(n / m + 1))元素比较,其中m和n是m≤n的输入序列的大小。根据合并的下限,所有建议的算法在必要比较的数量上都是渐近最优的。首先,我们引入了并行结构化算法,该算法将大小为2_1的合并问题分解为大小为2_(l-1)的2_i个子问题,对于一些具有(0≤i≤l)的任意i。该算法表示i = 1的合并,但在这种情况下效率很低。通过转移到两步方法可以提高效率,在此方法中,拆分过程停止在某个预定级别,并将控制权转移给多个并行操作的块合并。我们正式证明了分割过程的渐近最优性,并表明对于对称大小的输入,我们的方法所提供的运行时间比Thrust库中所含的推力::合并功能快4倍。为了在排序的背景下评估合并技术的价值,我们在其之上构造并评估了MergeSort。在我们的基准测试中,生成的MergeSort明显优于Thrust库以及Cederman的GPU优化的Quicksort变体提供的MergeSort实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号