面向1024核RISC-V众核集群的快速共享内存屏障同步
Fast Shared-Memory Barrier Synchronization for a 1024-Cores RISC-V Many-Core Cluster
AI总结:
本文针对1024核RISC-V众核集群TeraPool,通过对比优化屏障实现、微调树型屏障,大幅降低同步开销,首次实现了上千紧耦合处理单元的共享内存屏障同步。
摘要:
同步很可能是共享内存并行程序中最关键的性能杀手。随着多核与众核处理器的兴起,同步带来的性能与能耗开销的相对影响势必会增大。本文聚焦于TeraPool的屏障同步问题,TeraPool是一个包含1024个RISC-V处理器的集群,其对紧耦合的4MB共享L1数据存储器采用非一致性内存访问。我们对比了其他多核与众核集群中可用的同步策略,为TeraPool确定最优的原生屏障内核。我们对一组经过优化的屏障实现进行了基准测试,并在广泛使用的fork-join(分治并行)Open-MP风格编程模型框架下评估了它们的性能。我们测试了来自信号处理与电信领域的并行内核,对于适配TeraPool L1内存的问题,同步开销占总运行时间的比例不到10%。通过对树型屏障进行微调,我们相较于朴素的中央计数器屏障实现了1.6倍的加速,在典型的5G应用(包含一个具有挑战性的多阶段同步内核)上仅产生6.2%的开销。据我们所知,这是首个将共享内存屏障用于与共享数据存储器紧耦合的上千个处理单元同步的研究工作。
英文摘要:
Synchronization is likely the most critical performance killer in shared-memory parallel programs. With the rise of multi-core and many-core processors, the relative impact on performance and energy overhead of synchronization is bound to grow. This paper focuses on barrier synchronization for TeraPool, a cluster of 1024 RISC-V processors with non-uniform memory access to a tightly coupled 4MB shared L1 data memory. We compare the synchronization strategies available in other multi-core and many-core clusters to identify the optimal native barrier kernel for TeraPool. We benchmark a set of optimized barrier implementations and evaluate their performance in the framework of the widespread fork-join Open-MP style programming model. We test parallel kernels from the signal-processing and telecommunications domain, achieving less than 10% synchronization overhead over the total runtime for problems that fit TeraPool's L1 memory. By fine-tuning our tree barriers, we achieve 1.6x speed-up with respect to a naive central counter barrier and just 6.2% overhead on a typical 5G application, including a challenging multistage synchronization kernel. To our knowledge, this is the first work where shared-memory barriers are used for the synchronization of a thousand processing elements tightly coupled to shared data memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。