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

使用OpenCL命令并发性提高加速器上的任务吞吐量

Improving tasks throughput on accelerators using OpenCL command concurrency

A. J. Lázaro-Muñoz, J. M. González-Linares, J. Gómez-Luna, N. Guil

摘要:

由主机和加速器组成的异构体系结构必须经常处理多个独立任务可卸载到加速器上的情况。这些任务可以由在主机中执行的并发应用生成,或者在主机是计算机集群的节点的情况下,由在愿意卸载连接到主机的加速器中的任务的其他集群节点上运行的应用生成。在这项工作中,我们表明,一个运行时调度程序,选择一组任务的最佳执行顺序的加速器上可以显着减少任务的总执行时间,因此,增加了加速器的使用。我们的解决方案是基于一个时间执行模型,能够高精度地预测一组并发任务的执行时间启动的加速器。该执行模型已在AMD、NVIDIA和Xeon Phi设备中使用合成基准测试进行了验证。此外,采用时间执行模型,提出了一种启发式算法,它能够建立一个接近最优的任务执行顺序,显着减少总的执行时间,包括数据transfactors.该启发式算法已被评估与五个不同的基准组成的主导内核和主导传输的真实任务。实验表明,启发式总是能够找到一个更好的执行时间比平均每一个可能的执行顺序的顺序,大多数时候,它实现了一个接近最优的排序(非常接近最佳执行顺序的执行时间),可以忽略不计的开销。具体地说,我们的启发式获得,平均为所有的设备,84%和96%之间的最佳执行顺序实现的改善。

英文摘要:

A heterogeneous architecture composed by a host and an accelerator must frequently deal with situations where several independent tasks are available to be offloaded onto the accelerator. These tasks can be generated by concurrent applications executing in the host or, in case the host is a node of a computer cluster, by applications running on other cluster nodes that are willing to offload tasks in the accelerator connected to the host. In this work we show that a runtime scheduler that selects the best execution order of a group of tasks on the accelerator can significantly reduce the total execution time of the tasks and, consequently, increase the accelerator use. Our solution is based on a temporal execution model that is able to predict with high accuracy the execution time of a set of concurrent tasks launched on the accelerator. The execution model has been validated in AMD, NVIDIA, and Xeon Phi devices using synthetic benchmarks. Moreover, employing the temporal execution model, a heuristic is proposed which is able to establish a near-optimal tasks execution ordering that significantly reduces the total execution time, including data transfers.The heuristic has been evaluated with five different benchmarks composed of dominant kernel and dominant transfer real tasks. Experiments indicate the heuristic is able to find always an ordering with a better execution time than the average of every possible execution order and, most times, it achieves a near-optimal ordering (very close to the execution time of the best execution order) with a negligible overhead. Concretely, our heuristic obtains, on average for all the devices, between 84\% and 96\% of the improvement achieved by the best execution order.

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

↑