基于机器学习的增强型OpenCL性能可移植性的自动调整
Machine Learning Based Auto-tuning for Enhanced OpenCL Performance Portability
摘要:
异构计算将具有不同架构的设备结合在一起,这种计算越来越受欢迎,并有望提高性能,同时降低能耗。OpenCL已被提议作为此类系统编程的标准,并提供功能可移植性。然而,它确实存在性能可移植性差的问题,为一个设备调优的代码必须重新调优,才能在另一个设备上获得良好的性能。在本文中,我们使用基于机器学习的自动调整来解决这个问题。在整个调谐参数配置空间的随机子集上运行基准测试,并且使用结果来构建基于人工神经网络的模型。然后,可以使用该模型来找到参数空间的感兴趣的部分以进行进一步搜索。我们在几个设备上使用不同的基准测试来评估我们的方法,包括Intel i7 3770 CPU,Nvidia K40 GPU和AMD Radeon HD 7970 GPU。我们的模型实现了一个平均相对误差低至6.1%,并能够找到配置为1.3%,比全球最低。
英文摘要:
Heterogeneous computing, which combines devices with different architectures, is rising in popularity, and promises increased performance combined with reduced energy consumption. OpenCL has been proposed as a standard for programing such systems, and offers functional portability. It does, however, suffer from poor performance portability, code tuned for one device must be re-tuned to achieve good performance on another device. In this paper, we use machine learning-based auto-tuning to address this problem. Benchmarks are run on a random subset of the entire tuning parameter configuration space, and the results are used to build an artificial neural network based model. The model can then be used to find interesting parts of the parameter space for further search. We evaluate our method with different benchmarks, on several devices, including an Intel i7 3770 CPU, an Nvidia K40 GPU and an AMD Radeon HD 7970 GPU. Our model achieves a mean relative error as low as 6.1%, and is able to find configurations as little as 1.3% worse than the global minimum.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。