paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Optimizing Datalog for the GPU

面向 GPU 的 Datalog 优化
ASPLOS Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 12025匹配度 4/10 · 论文聚焦于GPU加速的Datalog引擎,属于静态分析的基础设施优化,但未涉及用户核心关注的LLM/Agent与静态分析交叉、浮点程序分析或贝叶斯程序分析;可作为静态分析性能优化的参考,但匹配度有限。引用 4 inbox
Yihao Sun, Ahmedur Rahman Shovon, Thomas Gilray, Sidharth Kumar, Kristopher Micinski
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 GPUlog:基于哈希索引有序数组 HISA 的 GPU Datalog 引擎,实现关系代数内核并显著加速递归推理。

现代 Datalog 引擎能将递归演绎查询高效执行,但在 CPU 上仍有性能瓶颈。本文面向数据中心 GPU 设计内存 Datalog 引擎后端 GPUlog,其核心是新型 range-indexed 数据结构 HISA(hash-indexed sorted array),兼具增量范围索引关系的算法优势与稠密数据结构的高吞吐。在此之上实现迭代式关系代数内核,支持查询计划、半朴素求值与并行化。实验在 httpd 的上下文敏感指针分析等任务上评估,相比 CPU 引擎 Soufflé 最高加速 45×,并优于当代 GPU join,且内存占用更优。

问题
如何将现代内存 Datalog 引擎的递归查询执行高效移植并优化到数据中心 GPU,以突破 CPU 引擎在静态分析等吞吐密集型应用中的性能瓶颈。
方法
提出 GPUlog 后端及 HISA 数据结构,在 GPU 上实现迭代关系代数内核,结合范围索引、稠密数组吞吐与半朴素求值/并行化。
评估
在 httpd 上下文敏感指针分析等基准上,与 Soufflé 等 CPU 引擎及当代 GPU join 比较,最高获得 45× 加速,内存占用表现良好。
原文摘要(Abstract)

Modern Datalog engines (e.g., LogicBlox, Soufflé, ddlog) enable their users to write declarative queries which compute recursive deductions over extensional facts, leaving high-performance operationalization (query planning, semi-naïve evaluation, and parallelization) to the engine. Such engines form the backbone of modern high-throughput applications in static analysis, network monitoring, and social-media mining. In this paper, we present a methodology for implementing a modern in-memory Datalog engine on data center GPUs, allowing us to achieve significant (up to 45×) gains compared to Soufflé (a modern CPU-based engine) on context-sensitive points-to analysis of httpd. We present GPUlog, a Datalog engine backend that implements iterated relational algebra kernels over a novel range-indexed data structure we call the hash-indexed sorted array (HISA). HISA combines the algorithmic benefits of incremental range-indexed relations with the raw computation throughput of operations over dense data structures. Our experiments show that GPUlog is significantly faster than CPU-based Datalog engines, while achieving favorable memory footprint compared to contemporary GPU-based joins.

链接与引用

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

BibTeX
@inproceedings{SunSGKM25,
  title = {Optimizing Datalog for the GPU},
  author = {Yihao Sun and Ahmedur Rahman Shovon and Thomas Gilray and Sidharth Kumar and Kristopher Micinski},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3669940.3707274}
}