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

在众核CPU上调度深度学习模型的计算图

Scheduling Computation Graphs of Deep Learning Models on Manycore CPUs

Linpeng Tang, Yida Wang, Theodore L. Willke, Kai Li

摘要:

对于深度学习模型,高效执行其计算图是实现高性能的关键。以前的工作集中在提高计算图的单个节点的性能,而忽略了图作为一个整体的并行化。然而,我们观察到,同时运行多个操作而不干扰是至关重要的,有效地执行并行化的小操作。在深度学习框架中并行执行计算图的尝试通常涉及并发操作之间的大量资源争用,导致众核CPU上的性能较差。为了解决这些问题,在本文中,我们提出了Graphi,一个通用的和高性能的执行引擎,以有效地执行计算图在多核CPU上并行。具体来说,Graphi最大限度地减少了对软件/硬件资源的干扰,使用分析器发现最佳并行设置,并使用关键路径优先调度进一步优化图形执行。我们的实验表明,并行执行一致优于顺序。使用Graphi的四个不同神经网络的训练时间比使用68核英特尔至强融核处理器上的TensorFlow快2.1倍至9.5倍。

英文摘要:

For a deep learning model, efficient execution of its computation graph is key to achieving high performance. Previous work has focused on improving the performance for individual nodes of the computation graph, while ignoring the parallelization of the graph as a whole. However, we observe that running multiple operations simultaneously without interference is critical to efficiently perform parallelizable small operations. The attempt of executing the computation graph in parallel in deep learning frameworks usually involves much resource contention among concurrent operations, leading to inferior performance on manycore CPUs. To address these issues, in this paper, we propose Graphi, a generic and high-performance execution engine to efficiently execute a computation graph in parallel on manycore CPUs. Specifically, Graphi minimizes the interference on both software/hardware resources, discovers the best parallel setting with a profiler, and further optimizes graph execution with the critical-path first scheduling. Our experiments show that the parallel execution consistently outperforms the sequential one. The training times on four different neural networks with Graphi are 2.1x to 9.5x faster than those with TensorFlow on a 68-core Intel Xeon Phi processor.

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

↑