一句话:研究并缓解 GPU 上 C++ 多态代码的虚函数开销,核心思路是通过指针判定类型来优化虚函数。
可编程加速器希望兼具传统 CPU 的灵活性与更高性能,但把代码移植到 GPU 等加速器上存在显著软件工程开销。现有 GPU 上的 C++ 支持使程序员能够以较小代价移植多态代码,然而多态代码引入的虚函数开销在 GPU 上尚未得到充分研究或缓解。本文围绕“以指针判类型”这一思路,针对 GPU 虚函数进行优化,旨在降低多态代码在 GPU 上的运行时开销,从而减少移植与使用可编程加速器的障碍。给出的摘要未报告具体实现细节与实验数据,因此关键结果无法从摘要判断。
Programmable accelerators aim to provide the flexibility of traditional CPUs with significantly improved performance. A well-known impediment to the widespread adoption of programmable accelerators, like GPUs, is the software engineering overhead involved in porting the code. Existing support for C++ on GPUs allows programmers to port polymorphic code with little effort. However, the overhead from the virtual functions introduced by polymorphic code has not been well studied or mitigated on GPUs.