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

高层次综合中的动态循环融合

Dynamic Loop Fusion in High-Level Synthesis

Robert Szafarczyk, Syed Waqar Nabi, Wim Vanderbauwhede

AI总结:

针对HLS中不规则代码的兄弟循环顺序执行瓶颈,提出动态循环融合的软硬件协同设计,利用地址单调性实现并行,平均加速较静态HLS达14倍,较动态HLS达4倍。

摘要:

动态高层次综合(HLS)使用额外硬件在运行时进行内存消歧,与静态HLS相比,提高了不规则代码中的循环吞吐量。然而,大多数不规则代码由多个兄弟循环组成,目前所有HLS工具都必须顺序执行这些循环。静态HLS仅对规则代码执行循环融合,而动态HLS则依赖具有依赖关系的循环在下一个循环开始前运行完成。我们提出了用于HLS的动态循环融合,这是一种编译器/硬件协同设计方法,即使循环包含不可预测的内存依赖,也能使多个循环并行运行。我们唯一的要求是内层循环中的内存地址单调非递减。我们提出了一种受多面体编译器启发的新型程序顺序调度,结合我们的地址单调性分析,实现了无需搜索地址历史和顺序循环执行的动态内存消歧。我们的评估显示,与静态HLS相比,平均加速14倍,与动态HLS相比,平均加速4倍。

英文摘要:

Dynamic High-Level Synthesis (HLS) uses additional hardware to perform memory disambiguation at runtime, increasing loop throughput in irregular codes compared to static HLS. However, most irregular codes consist of multiple sibling loops, which currently have to be executed sequentially by all HLS tools. Static HLS performs loop fusion only on regular codes, while dynamic HLS relies on loops with dependencies to run to completion before the next loop starts. We present dynamic loop fusion for HLS, a compiler/hardware co-design approach that enables multiple loops to run in parallel, even if they contain unpredictable memory dependencies. Our only requirement is that memory addresses are monotonically non-decreasing in inner loops. We present a novel program-order schedule for HLS, inspired by polyhedral compilers, that together with our address monotonicity analysis enables dynamic memory disambiguation that does not require searching of address histories and sequential loop execution. Our evaluation shows an average speedup of 14$\times$ over static and 4$\times$ over dynamic HLS.

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

↑