基于NLP的OpenCL内核设备映射优化
Towards making the most of NLP-based device mapping optimization for OpenCL kernels
摘要:
如今,我们生活在一个设备极端异构的时代。尽管传统的CPU架构种类繁多,但加速器设备(如GPU和FPGA)也出现在前台,从而使执行应用程序的可用解决方案池激增。然而,由于硬件和软件之间的抽象关系,根据应用需求选择合适的设备是一项极具挑战性的任务。需要精确的自动优化算法来应对当前硬件和软件的复杂性和多样性。最佳执行一直依赖于耗时的试错方法。机器学习(ML)和自然语言处理(NLP)在过去十年中蓬勃发展,研究重点是深度架构。在这种情况下,使用自然语言处理技术的源代码,以进行自动调优任务是一个新兴的研究领域。本文推广了Cummins等人的工作,即Deeptune,它解决了加速OpenCL内核的最佳设备选择(CPU或GPU)问题。我们确定了Deeptune的三个主要局限性,并在此基础上提出了四种不同的DNN模型,这些模型提供了增强的源代码上下文信息。实验结果表明,我们提出的方法优于康明斯等人的工作,提供高达4%的预测精度的提高。
英文摘要:
Nowadays, we are living in an era of extreme device heterogeneity. Despite the high variety of conventional CPU architectures, accelerator devices, such as GPUs and FPGAs, also appear in the foreground exploding the pool of available solutions to execute applications. However, choosing the appropriate device per application needs is an extremely challenging task due to the abstract relationship between hardware and software. Automatic optimization algorithms that are accurate are required to cope with the complexity and variety of current hardware and software. Optimal execution has always relied on time-consuming trial and error approaches. Machine learning (ML) and Natural Language Processing (NLP) has flourished over the last decade with research focusing on deep architectures. In this context, the use of natural language processing techniques to source code in order to conduct autotuning tasks is an emerging field of study. In this paper, we extend the work of Cummins et al., namely Deeptune, that tackles the problem of optimal device selection (CPU or GPU) for accelerated OpenCL kernels. We identify three major limitations of Deeptune and, based on these, we propose four different DNN models that provide enhanced contextual information of source codes. Experimental results show that our proposed methodology surpasses that of Cummins et al. work, providing up to 4\% improvement in prediction accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。