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

BSP 模型中的 DAG 调度

DAG Scheduling in the BSP Model

Pál András Papp, Georg Anegg, A. N. Yzelman

AI总结:

本文在 BSP 并行计算模型中研究 DAG 调度问题,通过分类法剖析模型组件,证明了问题在简单 DAG 上可多项式求解,但在入树等结构上为 NP-hard,一般 DAG 上为 APX-hard,并提出了整数线性规划表述。

摘要:

我们研究了在固定数量的处理器上调度任意计算 DAG 以最小化完工时间(makespan)的问题。以往的工作大多在相当受限的模型中研究此问题,而我们则在批量同步并行(BSP)模型中定义并分析 DAG 调度,BSP 是一种成熟的并行计算模型,能更准确地捕捉处理器之间的通信成本。我们提供了可被理解为 BSP 的变体或特例的更简单调度模型的分类法,并讨论了这些模型的属性和最优成本与 BSP 的关系。这实质上使我们能够剖析 BSP 模型的不同组成部分,并深入了解它们如何影响调度问题。\n\n随后,我们详细分析了 BSP 中 DAG 调度的难度。我们证明,对于某些非常简单的 DAG 类别,该问题可在多项式时间内求解,但对于入树或高度为 2 的 DAG,它已经是 NP-hard 的。我们还证明,在一般 DAG 中,该问题是 APX-hard 的:对于某个特定的 ε>0,它无法在多项式时间内被近似到 (1+ε) 因子。然后我们分别研究了通信步骤调度的子问题,并证明了该问题的 NP-hard 性取决于问题参数和 BSP 模型内的通信规则。最后,我们提出并分析了将调度任务自然表述为整数线性规划的方法。

英文摘要:

We study the problem of scheduling an arbitrary computational DAG on a fixed number of processors while minimizing the makespan. While previous works have mostly studied this problem in fairly restricted models, we define and analyze DAG scheduling in the Bulk Synchronous Parallel (BSP) model, which is a well-established parallel computing model that captures the communication cost between processors much more accurately. We provide a taxonomy of simpler scheduling models that can be understood as variants or special cases of BSP, and discuss how the properties and optimum cost of these models relate to BSP. This essentially allows us to dissect the different building blocks of the BSP model, and gain insight into how these influence the scheduling problem. We then analyze the hardness of DAG scheduling in BSP in detail. We show that the problem is solvable in polynomial time for some very simple classes of DAGs, but it is already NP-hard for in-trees or DAGs of height 2. We also prove that in general DAGs, the problem is APX-hard: it cannot be approximated to a $(1+ε)$-factor in polynomial time for some specific $ε>0$. We then separately study the subproblem of scheduling communication steps, and we show that the NP-hardness of this problem depends on the problem parameters and the communication rules within the BSP model. Finally, we present and analyze a natural formulation of our scheduling task as an Integer Linear Program.

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

↑