arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.05347cs.PFcs.DCcs.LGcs.MS
收藏

使用高度参数化的SYCL内核实现跨平台性能移植

Cross-Platform Performance Portability Using Highly Parametrized SYCL Kernels

Codeplay Software Ltd.(Codeplay软件有限公司)

John Lawson, Mehdi Goli, Duncan McBain, Daniel Soutar, Louis Sugy

摘要:

近年来,异构系统在HPC系统中变得越来越普遍,TOP500中有100多台超级计算机采用了GPU或其他加速器。这些硬件平台具有不同的性能特征和优化要求。为了充分利用多个加速器,开发人员必须提供针对每个设备调整的算法的实现。硬件供应商提供专门针对其设备的库,这些库提供良好的性能,但通常具有不同的API设计,阻碍了可移植性。SYCL编程模型允许用户使用完全标准的C++编写异构程序,因此开发人员在开发计算内核时可以使用C++模板的强大功能。在本文中,我们表明,通过编写高度参数化的内核矩阵乘法和卷积,我们实现了跨不同架构的供应商实现的性能竞争力。此外,针对新设备进行调优相当于选择在硬件上性能最佳的内核参数组合。

英文摘要:

Over recent years heterogeneous systems have become more prevalent across HPC systems, with over 100 supercomputers in the TOP500 incorporating GPUs or other accelerators. These hardware platforms have different performance characteristics and optimization requirements. In order to make the most of multiple accelerators a developer has to provide implementations of their algorithms tuned for each device. Hardware vendors provide libraries targeting their devices specifically, which provide good performance but frequently have different API designs, hampering portability. The SYCL programming model allows users to write heterogeneous programs using completely standard C++, and so developers have access to the power of C++ templates when developing compute kernels. In this paper we show that by writing highly parameterized kernels for matrix multiplies and convolutions we achieve performance competitive with vendor implementations across different architectures. Furthermore, tuning for new devices amounts to choosing the combinations of kernel parameters that perform best on the hardware.

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

↑