Kernel Launcher:用于最佳性能便携式CUDA应用程序的C++库
Kernel Launcher: C++ Library for Optimal-Performance Portable CUDA Applications
摘要:
图形处理单元(GPU)在科学计算中已经变得无处不在。然而,由于需要仔细的代码调优,编写高效的GPU内核可能具有挑战性。为了自动探索内核优化空间,已经提出了几种自动调优工具,如Kernel Tuner。不幸的是,这些现有的自动调优工具通常不关心将调优结果集成回应用程序,这给应用程序开发人员带来了重大的实现和维护负担。在这项工作中,我们提出了内核启动器:一个易于使用的C++库,简化了高度调优的CUDA应用程序的创建。使用Kernel Launcher,程序员可以捕获内核启动,针对不同的设置调优捕获的内核,并使用运行时编译将调优结果集成回应用程序中。为了展示Kernel Launcher的适用性,我们考虑了真实世界的计算流体动力学代码,并针对不同的GPU,输入域和精度调整其内核。
英文摘要:
Graphic Processing Units (GPUs) have become ubiquitous in scientific computing. However, writing efficient GPU kernels can be challenging due to the need for careful code tuning. To automatically explore the kernel optimization space, several auto-tuning tools - like Kernel Tuner - have been proposed. Unfortunately, these existing auto-tuning tools often do not concern themselves with integration of tuning results back into applications, which puts a significant implementation and maintenance burden on application developers. In this work, we present Kernel Launcher: an easy-to-use C++ library that simplifies the creation of highly-tuned CUDA applications. With Kernel Launcher, programmers can capture kernel launches, tune the captured kernels for different setups, and integrate the tuning results back into applications using runtime compilation. To showcase the applicability of Kernel Launcher, we consider a real-world computational fluid dynamics code and tune its kernels for different GPUs, input domains, and precisions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。