paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Judging a type by its pointer: optimizing GPU virtual functions

以指针判类型:优化 GPU 虚函数
ASPLOS Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems2021匹配度 1/10 · 该论文研究 GPU 上 C++ 多态代码的虚函数开销与编译/体系结构优化,与用户关注的 PL 与 AI/LLM 交叉、静态分析、浮点程序分析及贝叶斯程序分析均无直接关联。引用 1 inbox
Mengchi Zhang, Ahmad Alawneh, Timothy G. Rogers
crossref: 2026-09-12

AI 速览

一句话:研究并缓解 GPU 上 C++ 多态代码的虚函数开销,核心思路是通过指针判定类型来优化虚函数。

可编程加速器希望兼具传统 CPU 的灵活性与更高性能,但把代码移植到 GPU 等加速器上存在显著软件工程开销。现有 GPU 上的 C++ 支持使程序员能够以较小代价移植多态代码,然而多态代码引入的虚函数开销在 GPU 上尚未得到充分研究或缓解。本文围绕“以指针判类型”这一思路,针对 GPU 虚函数进行优化,旨在降低多态代码在 GPU 上的运行时开销,从而减少移植与使用可编程加速器的障碍。给出的摘要未报告具体实现细节与实验数据,因此关键结果无法从摘要判断。

问题
可编程加速器(如 GPU)上移植 C++ 多态代码时,虚函数引入的性能开销尚未得到充分研究或缓解。
方法
论文以“以指针判类型”为核心思路,针对 GPU 虚函数调用进行优化,以降低多态分派开销。
评估
给出的摘要未说明评估方式与结果;无法确认具体基准、指标或实验结论。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6149,
  title = {Judging a type by its pointer: optimizing GPU virtual functions},
  author = {Mengchi Zhang and Ahmad Alawneh and Timothy G. Rogers},
  booktitle = {ASPLOS},
  year = {2021},
  doi = {10.1145/3445814.3446734}
}