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

在稠密矩阵算法中利用细粒度有序矩阵

Exploiting Fine-Grain Ordered Parallelism in Dense Matrix Algorithms

Jian Weng, Vidushi Dadu, Tony Nowatzki

摘要:

密集的线性代数内核对于无线应用至关重要,而即将到来的5G扩散只会放大它们的重要性。许多这样的矩阵算法是归纳的,并且表现出大量的细粒度有序并行性-当多个计算流具有细粒度生产者/消费者依赖性时,并且迭代域不容易平铺。同步开销使得多核并行无效,并且不可分块的迭代使得向量VLIW方法效率较低,特别是对于通常中等大小的矩阵。由于CPU和DSP会损失数量级的性能/硬件利用率,因此信号处理管道中通常采用昂贵且不灵活的ASIC。具有类似性能/功率/面积的可编程加速器将是高度期望的。我们发现,细粒度有序并行可以利用支持:1。基于细粒度流的通信/同步; 2.归纳数据重用和存储器访问模式; 3.部分向量的隐式向量掩码; 4.低关键性的硬件专业化。在这项工作中,我们建议,REVEL,作为下一代DSP架构。它在其ISA和微架构中支持上述功能,并进一步使用新的矢量流控制范式来减少控制开销。在一套线性代数内核中,REVEL在延迟方面比同等配置的DSP高出4.6 - 37倍,每mm 2的性能达到8.3倍。它的功耗仅为理想ASIC的2.2倍,仅占总面积的55%。

英文摘要:

Dense linear algebra kernels are critical for wireless applications, and the oncoming proliferation of 5G only amplifies their importance. Many such matrix algorithms are inductive, and exhibit ample amounts of fine-grain ordered parallelism -- when multiple computations flow with fine-grain producer/consumer dependences, and where the iteration domain is not easily tileable. Synchronization overheads make multi-core parallelism ineffective and the non-tileable iterations make the vector-VLIW approach less effective, especially for the typically modest-sized matrices. Because CPUs and DSPs lose order-of-magnitude performance/hardware utilization, costly and inflexible ASICs are often employed in signal processing pipelines. A programmable accelerator with similar performance/power/area would be highly desirable. We find that fine-grain ordered parallelism can be exploited by supporting: 1. fine-grain stream-based communication/synchronization; 2. inductive data-reuse and memory access patterns; 3. implicit vector-masking for partial vectors; 4. hardware specialization of dataflow criticality. In this work, we propose, REVEL, as a next-generation DSP architecture. It supports the above features in its ISA and microarchitecture, and further uses a novel vector-stream control paradigm to reduce control overheads. Across a suite of linear algebra kernels, REVEL outperforms equally provisioned DSPs by 4.6x-37x in latency and achieves a performance per mm 2 of 8.3x. It is only 2.2x higher power to achieve the same performance as ideal ASICs, at about 55% of the combined area.

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

↑