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

基于确定性团队构建的混合模式并行工作窃取

Work-stealing for mixed-mode parallelism by deterministic team-building

Martin Wimmer, Jesper Larsson Träff

摘要:

我们展示了如何扩展经典的工作窃取处理数据并行任务,可以要求任何数量的线程r >= 1的执行。我们详细解释了这样介绍的想法,工作盗窃与确定性的团队建设,在一个自然的方式概括了经典的工作盗窃。给出了广义工作窃取算法的一个C++原型实现,并对其进行了简要描述。在此基础上,一个严重的,众所周知的竞争者最好的并行快速排序算法已经实现,这自然依赖于任务和数据并行。例如,对2^27-1随机生成的整数进行排序,我们可以在32核Intel Nehalem EX系统上将速度从5.1提高到8.7,始终优于经过调优的任务并行Cilk++系统。

英文摘要:

We show how to extend classical work-stealing to deal also with data parallel tasks that can require any number of threads r >= 1 for their execution. We explain in detail the so introduced idea of work-stealing with deterministic team-building which in a natural way generalizes classical work-stealing. A prototype C++ implementation of the generalized work-stealing algorithm has been given and is briefly described. Building on this, a serious, well-known contender for a best parallel Quicksort algorithm has been implemented, which naturally relies on both task and data parallelism. For instance, sorting 2^27-1 randomly generated integers we could improve the speed-up from 5.1 to 8.7 on a 32-core Intel Nehalem EX system, being consistently better than the tuned, task-parallel Cilk++ system.

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

↑