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

在英特尔至强融核上调整流式应用程序:基于机器学习的方法

Tuning Streamed Applications on Intel Xeon Phi: A Machine Learning Based Approach

Peng Zhang, Jianbin Fang, Tao Tang, Canqun Yang, Zheng Wang

摘要:

以XeonPhi协处理器和GPGPU为代表的众核加速器允许软件利用计算资源的空间和时间共享来提高整体系统性能。为了释放这种性能潜力,需要软件有效地划分硬件资源,以最大限度地提高主机设备通信和加速器计算之间的重叠,并将任务并行性的粒度与资源分区相匹配。然而,在每个程序、每个数据集的基础上确定正确的资源分区和任务并行性是具有挑战性的。这是因为可能的解决方案数量巨大,选择正确的解决方案的好处可能很大,但错误可能会严重损害性能。在本文中,我们提出了一种自动的方法来确定硬件资源分区和任务粒度为任何给定的应用程序,针对英特尔至强核架构。我们采用机器学习技术来自动学习启发式算法,而不是手工制作启发式算法,因为每个硬件代都必须重复这个过程。我们首先使用训练程序离线学习预测模型,然后使用学习到的模型来预测运行时任何未见过程序的资源分区和任务粒度。我们将我们的方法应用到23个有代表性的并行应用程序,并在CPU-XeonPhi混合异构众核平台上进行评估。我们的方法平均实现了1.6倍(高达5.6倍)的加速比,相当于理论上完美预测器所提供性能的94.5%。

英文摘要:

Many-core accelerators, as represented by the XeonPhi coprocessors and GPGPUs, allow software to exploit spatial and temporal sharing of computing resources to improve the overall system performance. To unlock this performance potential requires software to effectively partition the hardware resource to maximize the overlap between hostdevice communication and accelerator computation, and to match the granularity of task parallelism to the resource partition. However, determining the right resource partition and task parallelism on a per program, per dataset basis is challenging. This is because the number of possible solutions is huge, and the benefit of choosing the right solution may be large, but mistakes can seriously hurt the performance. In this paper, we present an automatic approach to determine the hardware resource partition and the task granularity for any given application, targeting the Intel XeonPhi architecture. Instead of hand-crafting the heuristic for which the process will have to repeat for each hardware generation, we employ machine learning techniques to automatically learn it. We achieve this by first learning a predictive model offline using training programs; we then use the learned model to predict the resource partition and task granularity for any unseen programs at runtime. We apply our approach to 23 representative parallel applications and evaluate it on a CPU-XeonPhi mixed heterogenous many-core platform. Our approach achieves, on average, a 1.6x (upto 5.6x) speedup, which translates to 94.5% of the performance delivered by a theoretically perfect predictor.

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

↑