arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.01568cs.DCcs.AR
收藏

HitGNN:基于CPU +多FPGA异构平台的高吞吐量GNN训练框架

HitGNN: High-throughput GNN Training Framework on CPU+Multi-FPGA Heterogeneous Platform

Yi-Chien Lin, Bingyi Zhang, Viktor Prasanna

摘要:

随着真实世界图形的大小增加,训练图神经网络(GNN)变得非常耗时,并且需要加速。虽然以前的工作已经证明了利用FPGA加速GNN训练的潜力,但由于硬件专业知识和大量开发工作的必要性,很少有工作可以用多个FPGA加速GNN训练。为此,我们提出了HitGNN,这是一个框架,使用户能够轻松地将GNN训练工作负载映射到CPU-Multi-FPGA平台上以进行加速。特别是,HitGNN将用户定义的同步GNN训练算法、GNN模型和平台元数据作为输入,基于平台元数据确定设计参数,并自动执行到CPU+Multi-FPGA平台的硬件映射。HitGNN由以下构建块组成:(1)高级应用编程接口(API),允许用户仅用几行代码指定各种同步GNN训练算法和GNN模型;(2)软件生成器,生成执行小批量采样的主机程序,管理CPU-FPGA通信,并处理FPGA之间的工作负载平衡;(3)加速器生成器,其生成具有优化的数据路径和存储器组织的GNN内核。我们表明,现有的同步GNN训练算法,如DistDGL和PaGraph,可以很容易地部署在一个CPU+多FPGA平台上使用我们的框架,同时实现高训练吞吐量。与在多GPU平台上加速同步GNN训练的最先进框架相比,HitGNN实现了高达27.21倍的带宽效率,以及高达4.26倍的加速比,使用比GPU少得多的计算能力和内存带宽。此外,HitGNN在CPU+Multi-FPGA平台上表现出良好的可扩展性,可扩展到16个FPGA。

英文摘要:

As the size of real-world graphs increases, training Graph Neural Networks (GNNs) has become time-consuming and requires acceleration. While previous works have demonstrated the potential of utilizing FPGA for accelerating GNN training, few works have been carried out to accelerate GNN training with multiple FPGAs due to the necessity of hardware expertise and substantial development effort. To this end, we propose HitGNN, a framework that enables users to effortlessly map GNN training workloads onto a CPU-Multi-FPGA platform for acceleration. In particular, HitGNN takes the user-defined synchronous GNN training algorithm, GNN model, and platform metadata as input, determines the design parameters based on the platform metadata, and performs hardware mapping onto the CPU+Multi-FPGA platform, automatically. HitGNN consists of the following building blocks: (1) high-level application programming interfaces (APIs) that allow users to specify various synchronous GNN training algorithms and GNN models with only a handful of lines of code; (2) a software generator that generates a host program that performs mini-batch sampling, manages CPU-FPGA communication, and handles workload balancing among the FPGAs; (3) an accelerator generator that generates GNN kernels with optimized datapath and memory organization. We show that existing synchronous GNN training algorithms such as DistDGL and PaGraph can be easily deployed on a CPU+Multi-FPGA platform using our framework, while achieving high training throughput. Compared with the state-of-the-art frameworks that accelerate synchronous GNN training on a multi-GPU platform, HitGNN achieves up to 27.21x bandwidth efficiency, and up to 4.26x speedup using much less compute power and memory bandwidth than GPUs. In addition, HitGNN demonstrates good scalability to 16 FPGAs on a CPU+Multi-FPGA platform.

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

↑