arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.10292cs.DC
收藏

多核上整数排序的研究

A study of integer sorting on multicores

Alexandros V. Gerbessiotis

摘要:

多核和GPU上的并行排序可以通过多种方法来实现,包括基于分布的方法的变体,例如基数排序,面向比较的算法,例如确定性规则采样和随机采样并行排序,以及基于网络的算法,例如Batcher的双调排序算法。在这项工作中,我们提出了一个多核处理器上的整数排序的实验研究。我们已经实现了串行和并行基数排序的各种基数,确定性规则过采样和随机过采样并行排序,也有一些以前很少探索或未探索的变种的bitonic排序和奇偶换位排序。该研究使用多线程和多处理并行编程库,C语言实现在Open MPI,MulticoreBSP和BSPlib下使用相同的源代码。一个次要的目标是试图模拟这些算法实现的性能下的多存储器BSP(多存储器BSP)模型。我们首先提供一些一般的高层次的观察这些实现的性能。如果我们可以得出任何结论的话,那就是通过考虑架构相关的特征(例如多个存储层次结构的结构和特性)来准确预测性能是困难的,并且通常是站不住脚的。在某种程度上,这受到编程工作中使用的高级库所带来的开销的影响。然而,我们仍然可以得出一些可靠的结论和理由,这些实现的性能使用MBSP模型,从而使MBSP有用和可用。

英文摘要:

Integer sorting on multicores and GPUs can be realized by a variety of approaches that include variants of distribution-based methods such as radix-sort, comparison-oriented algorithms such as deterministic regular sampling and random sampling parallel sorting, and network-based algorithms such as Batcher's bitonic sorting algorithm. In this work we present an experimental study of integer sorting on multicore processors. We have implemented serial and parallel radix-sort for various radixes, deterministic regular oversampling and random oversampling parallel sorting, and also some previously little explored or unexplored variants of bitonic-sort and odd-even transposition sort. The study uses multithreading and multiprocessing parallel programming libraries with the C language implementations working under Open MPI, MulticoreBSP, and BSPlib utilizing the same source code. A secondary objective is to attempt to model the performance of these algorithm implementations under the MBSP (Multi-memory BSP) model. We first provide some general high-level observations on the performance of these implementations. If we can conclude anything is that accurate prediction of performance by taking into consideration architecture dependent features such as the structure and characteristics of multiple memory hierarchies is difficult and more often than not untenable. To some degree this is affected by the overhead imposed by the high-level library used in the programming effort. We can still draw however some reliable conclusions and reason about the performance of these implementations using the MBSP model, thus making MBSP useful and usable.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑