跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2606.01693 · v2

Packed-Ring Queues: Lock-Free and Wait-Free Concurrent Queues on GPU

首次提交 2026-06-01 12:57
版本更新 2026-11-23 06:35
雷达观测 2026-11-24 14:50
arXiv ↗PDF ↗

摘要

Concurrent queues are a foundational building block of parallel programming. On CPUs, decades of research have produced queue designs with well-understood correctness and progress guarantees -- from lock-free rings to wait-free constructions. On GPUs, where queues increasingly sit on the critical path of device-side task graphs and GPU-initiated I/O, no comparable foundation exists: SIMT execution serializes divergent retries across a warp; tens of thousands of threads contend on the same counter words; the double-width atomics that several CPU designs assume are absent; and GPU memory models are weakly ordered, so the classical algorithms do not transfer unchanged. We present the packed-ring queues (PRQs) -- two linearizable, bounded GPU queues that represent each compound atomic state in one native word of at most 64 bits: (1) PRQ-LF, a lock-free ring whose warp-batched fast path issues one atomic per warp on each of the queue's contended words, and (2) PRQ-WF, a wait-free ring in which peer threads cooperatively complete any operation that falls behind. To the best of our knowledge, PRQ-WF is the first GPU concurrent queue whose wait-freedom is proved as a theorem, with no assumption about how the GPU schedules threads. Across four GPUs from two vendors (NVIDIA A100 and GH200, AMD MI210 and MI300A), PRQ-LF outperforms the blocking Broker Queue by 5.0-20.4x at 32K threads, and PRQ-WF sustains throughput under producer/consumer imbalance where a prior design completes fewer than 0.1% of its attempts.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-23 06:35 · 最新观测版本

Packed-Ring Queues: Lock-Free and Wait-Free Concurrent Queues on GPU

Concurrent queues are a foundational building block of parallel programming. On CPUs, decades of research have produced queue designs with well-understood correctness and progress guarantees -- from lock-free rings to wait-free constructions. On GPUs, where queues increasingly sit on the critical path of device-side task graphs and GPU-initiated I/O, no comparable foundation exists: SIMT execution serializes divergent retries across a warp; tens of thousands of threads contend on the same counter words; the double-width atomics that several CPU designs assume are absent; and GPU memory models are weakly ordered, so the classical algorithms do not transfer unchanged. We present the packed-ring queues (PRQs) -- two linearizable, bounded GPU queues that represent each compound atomic state in one native word of at most 64 bits: (1) PRQ-LF, a lock-free ring whose warp-batched fast path issues one atomic per warp on each of the queue's contended words, and (2) PRQ-WF, a wait-free ring in which peer threads cooperatively complete any operation that falls behind. To the best of our knowledge, PRQ-WF is the first GPU concurrent queue whose wait-freedom is proved as a theorem, with no assumption about how the GPU schedules threads. Across four GPUs from two vendors (NVIDIA A100 and GH200, AMD MI210 and MI300A), PRQ-LF outperforms the blocking Broker Queue by 5.0-20.4x at 32K threads, and PRQ-WF sustains throughput under producer/consumer imbalance where a prior design completes fewer than 0.1% of its attempts.

查看此版本解读 →查看此版本原文 ↗