GPU上无库冲突的排序和置换
Sorting and Permuting without Bank Conflicts on GPUs
摘要:
在本文中,我们看看在图形处理单元(GPU)的共享内存中没有任何银行冲突的设计算法的复杂性。给定$n$、$w$处理器和$w$存储体大小的输入,我们研究了三个基本问题:排序、置换和$w$路划分(定义为对包含$[w]$中每个整数的$n/w$副本的输入进行排序).我们解决了最佳的$O(\frac{n}{w} \log n)$时间排序。当使用$n \ge w^2$时,我们在$O(n/w)$时间内最优地解决了划分问题。我们还提出了一个一般的解决方案的分区问题,需要$O(\frac{n}{w} \log^3_{n/w} w)$的时间。最后,我们使用随机算法在$O(\frac{n}{w} \log\log\log_{n/w} n)$时间内解决置换问题。我们的研究结果表明,当工作与银行的内存架构,有这些问题之间的分离和排列和分区问题是不容易的简单的并行扫描。
英文摘要:
In this paper, we look at the complexity of designing algorithms without any bank conflicts in the shared memory of Graphical Processing Units (GPUs). Given input of size $n$, $w$ processors and $w$ memory banks, we study three fundamental problems: sorting, permuting and $w$-way partitioning (defined as sorting an input containing exactly $n/w$ copies of every integer in $[w]$). We solve sorting in optimal $O(\frac{n}{w} \log n)$ time. When $n \ge w^2$, we solve the partitioning problem optimally in $O(n/w)$ time. We also present a general solution for the partitioning problem which takes $O(\frac{n}{w} \log^3_{n/w} w)$ time. Finally, we solve the permutation problem using a randomized algorithm in $O(\frac{n}{w} \log\log\log_{n/w} n)$ time. Our results show evidence that when working with banked memory architectures, there is a separation between these problems and the permutation and partitioning problems are not as easy as simple parallel scanning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。