COX:通过向CPU公开翘曲级函数在X86上实现CUDA
COX: CUDA on X86 by Exposing Warp-Level Functions to CPUs
摘要:
随着CUDA程序成为高性能计算或机器学习应用程序等数据并行应用程序中事实上的程序,在其他平台上运行CUDA已成为一个引人注目的选择。虽然有几项努力试图在NVIDIA GPU设备之外的其他设备上支持CUDA,但由于翻译中的额外步骤,支持总是落后于支持CUDA的最新功能几年。例如DPC和Hipfy,其中CUDA源代码必须被翻译为本地支持语言,然后才能得到支持。特别是,新的CUDA编程模型暴露了程序设计语言中的warp概念,这极大地改变了CUDA代码映射到CPU程序的方式。本文提出了\emph{correctly}支持CPU上CUDA warp级函数的分层折叠方法。基于层次折叠,开发了一个框架,COX,允许CUDA程序的最新功能,有效地执行CPU平台。COX由一个编译器IR转换(新的LLVM通道)和一个运行时系统组成,用于在CPU设备上执行转换后的程序。COX可以支持最新的CUDA功能,应用程序覆盖率(90%)比以前的框架(68%)高得多,性能相当。我们还表明,在CUDA中的warp级功能可以有效地执行,利用CPU SIMD(AVX)指令。
英文摘要:
As CUDA programs become the de facto program among data parallel applications such as high-performance computing or machine learning applications, running CUDA on other platforms has been a compelling option. Although several efforts have attempted to support CUDA on other than NVIDIA GPU devices, due to extra steps in the translation, the support is always behind a few years from supporting CUDA's latest features. The examples are DPC, Hipfy, where CUDA source code have to be translated to their native supporting language and then they are supported. In particular, the new CUDA programming model exposes the warp concept in the programming language, which greatly changes the way the CUDA code should be mapped to CPU programs. In this paper, hierarchical collapsing that \emph{correctly} supports CUDA warp-level functions on CPUs is proposed. Based on hierarchical collapsing, a framework, COX, is developed that allows CUDA programs with the latest features to be executed efficiently on CPU platforms. COX consists of a compiler IR transformation (new LLVM pass) and a runtime system to execute the transformed programs on CPU devices. COX can support the most recent CUDA features, and the application coverage is much higher (90%) than for previous frameworks (68%) with comparable performance. We also show that the warp-level functions in CUDA can be efficiently executed by utilizing CPU SIMD (AVX) instructions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。