arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.13051cs.DB
收藏

GPU上的列式Datalog

Column-Oriented Datalog on the GPU

Yihao Sun, Sidharth Kumar, Thomas Gilray, Kristopher Micinski

AI总结:

本文提出VFLog,首个面向现代GPU的列式Datalog引擎,利用CUDA实现列式存储,在KRR等负载上较CPU列式引擎快200倍以上,较GPU引擎快2.5倍。

摘要:

Datalog是一种逻辑编程语言,因其表达能力和高性能,被广泛应用于知识表示与推理(KRR)、程序分析以及社交媒体挖掘等领域。传统上,Datalog引擎采用行式或列式存储。像VLog和Nemo这样的引擎倾向于使用列式存储,以在资源有限的机器上提高效率;而行式引擎如Souffle则使用带有锁的高级数据结构,在多核CPU上表现更佳。现代数据中心GPU的出现,例如NVIDIA H100,能够同时运行超过16k个线程并具有高内存带宽,这重新引发了关于哪种存储布局更有效的讨论。本文提出了首个针对现代GPU优势量身定制的列式Datalog引擎。我们介绍了VFLog,一个基于CUDA的Datalog运行时库,它采用列式GPU数据结构,支持所有必要的关系代数操作。我们的结果表明,在各种工作负载(包括KRR)中,与基于CPU的最先进列式Datalog引擎相比,性能提升超过200倍,并且比GPU Datalog引擎快2.5倍。

英文摘要:

Datalog is a logic programming language widely used in knowledge representation and reasoning (KRR), program analysis, and social media mining due to its expressiveness and high performance. Traditionally, Datalog engines use either row-oriented or column-oriented storage. Engines like VLog and Nemo favor column-oriented storage for efficiency on limited-resource machines, while row-oriented engines like Souffle use advanced data structures with locking to perform better on multi-core CPUs. The advent of modern datacenter GPUs, such as the NVIDIA H100 with its ability to run over 16k threads simultaneously and high memory bandwidth, has reopened the debate on which storage layout is more effective. This paper presents the first column-oriented Datalog engines tailored to the strengths of modern GPUs. We present VFLog, a CUDA-based Datalog runtime library with a column-oriented GPU datastructure that supports all necessary relational algebra operations. Our results demonstrate over 200x performance gains over SOTA CPU-based column-oriented Datalog engines and a 2.5x speedup over GPU Datalog engines in various workloads, including KRR.

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

↑