arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.05681cs.PLcs.PF
收藏

DARM:减少SIMT线程发散的控制流融合--扩展版

DARM: Control-Flow Melding for SIMT Thread Divergence Reduction -- Extended Version

Charitha Saumya, Kirshanthan Sundararajah, Milind Kulkarni

摘要:

GPGPU使用单指令多线程(SIMT)执行模型,其中一组线程(波前或扭曲)以锁步方式执行指令。当一个组中的线程遇到分支指令时,并不是该组中的所有线程都采用相同的路径,这种现象称为控制流发散。控制流发散会导致性能下降,因为分支的两条路径必须一个接一个地执行。以前的研究主要通过架构修改来解决这个问题。我们观察到,某些GPGPU内核的控制流发散具有类似的控制流结构,分支的两侧具有类似的指令。这种结构可以用来减少控制流的发散,方法是合并分支的两侧,允许线程提前重新聚合,从而减少发散。在这项工作中,我们提出了DARM,编译器分析和转换框架,可以融合不同的控制流结构与类似的指令序列。我们表明,DARM可以减少控制流发散的性能下降。

英文摘要:

GPGPUs use the Single-Instruction-Multiple-Thread (SIMT) execution model where a group of threads-wavefront or warp-execute instructions in lockstep. When threads in a group encounter a branching instruction, not all threads in the group take the same path, a phenomenon known as control-flow divergence. The control-flow divergence causes performance degradation because both paths of the branch must be executed one after the other. Prior research has primarily addressed this issue through architectural modifications. We observe that certain GPGPU kernels with control-flow divergence have similar control-flow structures with similar instructions on both sides of a branch. This structure can be exploited to reduce control-flow divergence by melding the two sides of the branch allowing threads to reconverge early, reducing divergence. In this work, we present DARM, a compiler analysis and transformation framework that can meld divergent control-flow structures with similar instruction sequences. We show that DARM can reduce the performance degradation from control-flow divergence.

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

↑