Clustered CUDA launch runs 128 blocks when gridDim says 64: a hidden driver bug

mike64_t · x · 2026-10-23

While testing a CUDA kernel, the author noticed something odd: a plain launch ran 64 blocks as expected, but with thread block clustered launch and device update enabled, 128 blocks actually ran while gridDim.x still reported 64 — with no errors raised.

The follow-up pinpoints the cause: c[0][0x0c] and CTARASTERWIDTH were not kept in sync, i.e. the driver-filled kernel parameter mismatched the raster width constant under clustered launch, so more CTAs executed than intended. A deep GPU driver/launch debugging find — takeaway: under clustered launch, don't trust gridDim; verify actual block execution counts.

Original post →

More from Fun

Fun channel →