一种中断驱动的工作共享For-Loop算法
An Interrupt-Driven Work-Sharing For-Loop Scheduler
摘要:
在本文中,我们提出了一种并行for循环调度器,该调度器基于工作窃取原则,但在完全协作的方案下运行。空闲线程使用POSIX信号来中断留下的工作线程,这些工作线程决定将其工作负载的哪一部分分配给请求者。我们称之为中断驱动的工作共享(IDWS)。本文介绍了IDWS的工作原理,如何将其集成到任何符合POSIX的OpenMP实现中,以及用户如何在现有的符合POSIX的C++应用程序中手动将OpenMP并行for循环替换为IDWS。此外,我们使用具有不同的工作负载分布在迭代空间中的合成基准测试和Sandy Bridge和Xeon Phi系统上的实际应用程序来测量其性能。无论工作负载分布和底层硬件如何,IDWS始终是最好的或性能最好的策略之一,为选择两难困境提供了一个很好的全面解决方案。
英文摘要:
In this paper we present a parallel for-loop scheduler which is based on work-stealing principles but runs under a completely cooperative scheme. POSIX signals are used by idle threads to interrupt left-behind workers, which in turn decide what portion of their workload can be given to the requester. We call this scheme Interrupt-Driven Work-Sharing (IDWS). This article describes how IDWS works, how it can be integrated into any POSIX-compliant OpenMP implementation and how a user can manually replace OpenMP parallel for-loops with IDWS in existing POSIX-compliant C++ applications. Additionally, we measure its performance using both a synthetic benchmark with varying distributions of workload across the iteration space and a real-life application on Sandy Bridge and Xeon Phi systems. Regardless the workload distribution and the underlying hardware, IDWS is always the best or among the best-performing strategies, providing a good all-around solution to the scheduling-choice dilemma.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。