arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.02206cs.DBcs.PL
收藏

面向GPU优化Datalog

Optimizing Datalog for the GPU

Yihao Sun, Ahmedur Rahman Shovon, Thomas Gilray, Kristopher Micinski, Sidharth Kumar

AI总结:

本文提出GPUlog,通过哈希索引排序数组(HISA)在数据中心GPU上实现高性能Datalog引擎,在httpd上下文敏感点到分析中最高比Soufflé快45倍,并兼顾了内存效率。

摘要:

现代Datalog引擎(如LogicBlox、Soufflé、ddlog)使用户能够编写声明式查询,对扩展事实进行递归推导计算,而将高性能的运算化工作(查询规划、半朴素评估和并行化)留给引擎处理。此类引擎构成了现代高吞吐量应用(如静态分析、网络监控和社交媒体挖掘)的骨干。在本文中,我们提出了一种在数据中心GPU上实现现代内存Datalog引擎的方法,使我们在对httpd进行上下文敏感的点到分析时,相较于Soufflé(一种现代基于CPU的引擎)能够获得显著(最高达45倍)的性能提升。我们介绍了GPUlog,这是一个Datalog引擎后端,它在我们称之为哈希索引排序数组(HISA)的新型范围索引数据结构上实现了迭代关系代数内核。HISA结合了增量范围索引关系的算法优势与对稠密数据结构进行操作所带来的原始计算吞吐量。我们的实验表明,GPUlog比基于CPU的Datalog引擎显著更快,同时与当代基于GPU的连接操作相比,实现了有利的内存占用。

英文摘要:

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 45x) 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 a favorable memory footprint compared to contemporary GPU-based joins.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑