arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.05056cs.DC
收藏

libhclooc:促进混合计算平台上加速器内核的核外实现的软件库

libhclooc: Software Library Facilitating Out-of-core Implementations of Accelerator Kernels on Hybrid Computing Platforms

Daniel Hanlon, Hamidreza Khalighzadeh, Ravi Reddy Manumachu, Alexey Lastovetsky

摘要:

图形处理单元(GPU)、英特尔至强融核协处理器(PHI)和现场可编程门阵列(FPGA)等硬件加速器现在普遍存在于超大规模高性能计算(HPC)、云和大数据平台中,以促进需要高能效的工作负载的执行。它们提供了独特的接口和编程模型,因此造成了一些限制,必须解决这些限制以促进大型工作负载的执行。没有一个库提供一个统一的接口,允许程序员编写可重用的数据并行内核的核外实现,这些内核可以在不同的主流加速器(如GPU、PHI和FPGA)上高效运行。我们在本文中解决了这一不足。我们提出了一个名为libhclooc的库,它提供了一个统一的接口,方便在三种不同的主流加速器(GPU,英特尔至强Phis,FPGA)上的数据并行内核的核外实现。我们使用libhclooc API实现了核外矩阵-矩阵乘法(MMOOC),并展示了其优于供应商实现的性能。我们发现,与Nvidia K40 c GPU,Nvidia P100 PCIe GPU和Intel Xeon Phi 3120 P的最新优化实现相比,它的最大开销分别为10%,4%和8%(由于抽象)。我们还表明,使用libhclooc API减少了75%的代码行数,从而大大提高了程序员的工作效率。

英文摘要:

Hardware accelerators such as Graphics Processing Units (GPUs), Intel Xeon Phi co-processors (PHIs), and Field-Programmable Gate Arrays (FPGAs) are now ubiquitous in extreme-scale high performance computing (HPC), cloud, and Big data platforms to facilitate execution of workloads that demand high energy efficiency. They present unique interfaces and programming models therefore posing several limitations, which must be addressed to facilitate execution of large workloads. There is no library providing a unifying interface that allows programmers to write reusable out-of-core implementations of their data-parallel kernels that can run efficiently on different mainstream accelerators such as GPUs, PHIs, and FPGAs. We address this shortage in this paper. We present a library called libhclooc, which provides a unifying interface facilitating out-of-core implementations for data parallel kernels on the three different mainstream accelerators (GPUs, Intel Xeon Phis, FPGAs). We implement out-of-core matrix-matrix multiplication (MMOOC) using the libhclooc API and demonstrate its superior performance over vendor implementations. We show that it suffers from a maximum overhead of 10%, 4%, and 8% (due to abstraction) compared to the state-of-the-art optimised implementations for Nvidia K40c GPU, Nvidia P100 PCIe GPU, and Intel Xeon Phi 3120P respectively. We also show that using libhclooc API reduces the number of lines of code (LOC) by 75% thereby drastically improving programmer productivity.

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

↑