SIMTurn:用于线程束内同步的轻量级分歧子组调度
SIMTurn: Lightweight Divergent Subgroup Scheduling for Intra-Warp Synchronization
AI总结:
SIMTurn是一种轻量级编译器-硬件协同机制,通过结合编译器插入的让步指令与可恢复子组有界池,在保留栈式重汇聚的同时实现线程束内同步,其调度器面积开销远低于ITS,在跨子组并行内核上性能接近ITS且优于IPDOM。
摘要:
基于栈的重汇聚技术可通过共享线程束程序计数器和紧凑的控制流状态实现高效的SIMT执行,但其对分歧路径的固定序列化会导致依赖线程束内同步的程序发生死锁:自旋的子组可能阻止持有资源的同组线程执行。独立线程调度(ITS)通过每个线程的执行状态实现更细粒度的进展,但会引入额外的硬件开销。我们提出SIMTurn,一种轻量级的编译器-硬件协同机制,在保留基于栈的重汇聚技术的同时,使分歧子组间能够向前推进。SIMTurn将编译器插入的让步指令应用于潜在的阻塞循环,并结合可恢复子组的有界池。调度器允许等待的子组向能够推进的同组线程让步,无需为每个线程配备独立的程序计数器。我们在开源Vortex GPGPU的编译器、模拟器和RTL中实现了SIMTurn,并将其与基线IPDOM和每线程ITS方案进行评估。在评估的GPU线程配置中,SIMTurn相对于IPDOM仅产生17-24%的调度器面积开销,而ITS的开销为39-91%;在无需跨子组进展的工作负载上,SIMTurn与IPDOM的性能差距在8%以内。在具有真实跨子组并行性的内核上,SIMTurn的性能与ITS接近,比软件序列化的IPDOM基线快达2.7倍。
英文摘要:
Stack-based reconvergence enables efficient SIMT execution with a shared warp program counter and compact control-flow state. However, its fixed serialization of divergent paths can deadlock programs that rely on intra-warp synchronization: a spinning subgroup may prevent a resource-holding sibling from executing. Independent Thread Scheduling (ITS) enables finer-grained progress through per-thread execution state, but introduces additional hardware cost. We present SIMTurn, a lightweight compiler-hardware mechanism that enables forward progress among divergent subgroups while retaining stack-based reconvergence. SIMTurn combines a compiler-inserted yield instruction at potentially blocking loops with a bounded pool of resumable subgroups. The scheduler allows a waiting subgroup to yield to a sibling that can make progress, without requiring independent program counters for every thread. We implement SIMTurn in the compiler, simulator, and RTL on the open-source Vortex GPGPU and evaluate it against baseline IPDOM and per-thread ITS schemes. Across the evaluated GPU thread configurations, SIMTurn introduces only 17-24% scheduler-area overhead relative to IPDOM, compared with 39-91% for ITS, and stays within 8% of IPDOM on workloads that never need cross-subgroup progress. On kernels with genuine cross-subgroup parallelism, SIMTurn tracks ITS closely and is up to 2.7x faster than a software-serialized IPDOM baseline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。