arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10511cs.DCcs.ARcs.NAcs.PFmath.NA
收藏

基于中等粒度数据流的高效SpTRSV硬件加速器

Efficient Hardware Accelerator Based on Medium Granularity Dataflow for SpTRSV

Qian Chen, Xiaofeng Yang, Shengli Lu

AI总结:

本文针对SpTRSV中粗、细粒度数据流难以兼顾局部性与并行性的问题,通过软硬件协同设计中等粒度数据流,并结合部分和缓存与边计算重排序,显著提升性能和能效。

摘要:

稀疏三角求解(SpTRSV)广泛应用于多个领域。已有大量研究使用CPU、GPU和专用硬件加速器开展工作,其中数据流可分为粗粒度和细粒度两类。粗粒度数据流具有良好的空间局部性,但并行度较低;细粒度数据流可提供高并行度,却会破坏空间结构,导致节点数量增加和数据复用较差。本文提出了一种面向SpTRSV或类SpTRSV DAG的新型硬件加速器。该加速器通过软硬件协同设计实现中等粒度数据流,同时获得优异的空间局部性和高并行度。此外,本文引入部分和缓存机制以降低处理单元(PE)的阻塞频率,并设计节点内边计算的重排序算法以增强数据复用。在245个基准测试上的实验结果表明,节点数最高可达85,392;相对于CPU,本工作实现平均7.0×(最高27.8×)的性能提升;相对于GPU,实现平均5.8×(最高98.8×)的性能提升。与最先进技术DPU-v2相比,本工作展现出2.5×(最高5.9×)的平均性能提升以及1.7×(最高4.1×)的平均能效提升。

英文摘要:

Sparse triangular solve (SpTRSV) is widely used in various domains. Numerous studies have been conducted using CPUs, GPUs, and specific hardware accelerators, where dataflows can be categorized into coarse and fine granularity. Coarse dataflows offer good spatial locality but suffer from low parallelism, while fine dataflows provide high parallelism but disrupt the spatial structure, leading to increased nodes and poor data reuse. This paper proposes a novel hardware accelerator for SpTRSV or SpTRSV-like DAGs. The accelerator implements a medium granularity dataflow through hardware-software codesign and achieves both excellent spatial locality and high parallelism. Additionally, a partial sum caching mechanism is introduced to reduce the blocking frequency of processing elements (PEs), and a reordering algorithm of intra-node edges computation is developed to enhance data reuse. Experimental results on 245 benchmarks with node counts reaching up to 85,392 demonstrate that this work achieves average performance improvements of 7.0$\times$ (up to 27.8$\times$) over CPUs and 5.8$\times$ (up to 98.8$\times$) over GPUs. Compared to the state-of-the-art technique (DPU-v2), this work shows a 2.5$\times$ (up to 5.9$\times$) average performance improvement and 1.7$\times$ (up to 4.1$\times$) average energy efficiency enhancement.

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

↑