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

面向图形应用的轻量级FPGA编程框架设计

On The Design of a Light-weight FPGA Programming Framework for Graph Applications

Jing Wang, Jinyang Guo, Chao Li

摘要:

为图形处理设计的FPGA加速器越来越受欢迎。用于图处理的领域特定语言(DSL)框架可以降低算法设计的编程复杂度和开发成本。然而,特定于加速器的开发需要一定的技术专业知识和大量的工作来设计、实现和验证系统。对于大多数算法设计人员来说,硬件编程经验的昂贵成本使得FPGA加速器不可用或不经济。尽管通用高级综合(HLS)工具有助于将高级语言映射到硬件描述语言(HDL),但与高度优化的图形加速器相比,生成的代码通常效率低下且冗长。在低开发成本的情况下,无法充分利用FPGA加速器的能力。为了方便地编程图算法,同时保持可接受的性能下降,我们提出了一个图形编程系统命名为JGraph,它包含两个主要部分:1)一个DSL的图形原子操作与图形库的高层次抽象,包括用户定义的功能与参数,2)一个轻量级的HLS翻译器,以生成高性能的HDL代码,与通信管理器和运行时调度器合作。据我们所知,我们的工作是第一个图形编程系统与DSL和翻译的FPGA平台上。我们的系统可以在几十秒内生成高达300 MTEPS的BFS遍历。

英文摘要:

FPGA accelerators designed for graph processing are gaining popularity. Domain Specific Language (DSL) frameworks for graph processing can reduce the programming complexity and development cost of algorithm design. However, accelerator-specific development requires certain technical expertise and significant effort to devise, implement, and validate the system. For most algorithm designers, the expensive cost for hardware programming experience makes FPGA accelerators either unavailable or uneconomic. Although general-purpose High-Level Synthesis (HLS) tools help to map high-level language to Hardware Description Languages (HDLs), the generated code is often inefficient and lengthy compared with the highly-optimized graph accelerators. One cannot make full use of an FPGA accelerator's capacity with low development cost. To easily program graph algorithms while keeping performance degradation acceptable, we propose a graph programming system named JGraph, which contains two main parts: 1) a DSL for graph atomic operations with a graph library for high-level abstractions including user-defined functions with parameters, 2) a light-weight HLS translator to generate high-performance HDL code, cooperating with a communication manager and a runtime scheduler. To the best of our knowledge, our work is the first graph programming system with DSL and translator on the FPGA platform. Our system can generate up to 300 MTEPS BFS traversal within tens of seconds.

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

↑