KLARAPTOR:一个动态寻找针对CUDA程序的最优内核启动参数的工具
KLARAPTOR: A Tool for Dynamically Finding Optimal Kernel Launch Parameters Targeting CUDA Programs
摘要:
在本文中,我们提出了KLARAPTOR(Kernel LAunch parameters Rational Program estimaTOR),这是一个建立在LLVM Pass Framework和NVIDIA CUPTI API之上的新工具,用于动态确定CUDA程序P的内核启动参数的最佳值。使用性能预测模型,并且在运行时知道P的特定数据和硬件参数,程序R可以自动且动态地确定将产生最佳性能的P的启动参数的值。我们的技术可以应用于并行程序一般,以及通用的性能预测模型,占程序和硬件参数。我们对针对众核加速器的计划特别感兴趣。我们已经实施并成功地测试了我们的技术的背景下,GPU内核写在CUDA使用MWP-CWP性能预测模型。
英文摘要:
In this paper we present KLARAPTOR (Kernel LAunch parameters RAtional Program estimaTOR), a new tool built on top of the LLVM Pass Framework and NVIDIA CUPTI API to dynamically determine the optimal values of kernel launch parameters of a CUDA program P. To be precise, we describe a novel technique to statically build (at the compile time of P) a so-called rational program R. Using a performance prediction model, and knowing particular data and hardware parameters of P at runtime, the program R can automatically and dynamically determine the values of launch parameters of P that will yield optimal performance. Our technique can be applied to parallel programs in general, as well as to generic performance prediction models which account for program and hardware parameters. We are particularly interested in programs targeting manycore accelerators. We have implemented and successfully tested our technique in the context of GPU kernels written in CUDA using the MWP-CWP performance prediction model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。