arXiv:2609.01864cs.DCSep 2026

Manuscript Offprint

arXiv:2609.01864

CREDIT: Cost-guided Reduction-reuse with Efficient DSMEM Inter-CTA Tiling

Zhengxiong Li, Tsung-Wei Huang, Umit Ogras

Zhengxiong Li

University of Wisconsin–Madison

Madison, WI, USA

zhengxiong.li@wisc.edu

Tsung-Wei Huang

University of Wisconsin–Madison

Madison, WI, USA

tsung-wei.huang@wisc.edu

Umit Ogras

University of Wisconsin–Madison

Madison, WI, USA

uogras@wisc.edu

Abstract—NVIDIA distributed shared memory (DSMEM) enables direct shared-memory access within a thread block cluster. However, cluster synchronization, remote access, and resource costs make it difficult to determine when DSMEM improves performance. To fill this gap, we propose CREDIT, a cost-guided framework that identifies DSMEM-profitable workload patterns, predicts their profitability range, and delivers consistent speedups across diverse workloads. CREDIT combines three innovations: (1) a profiling-driven characterization that identifies workload patterns likely to benefit from DSMEM; (2) a transformation that applies DSMEM to reduction-reuse workloads; (3) a cost model based on profiling data, to determine its profitability range. Evaluations on diverse workloads show CREDIT achieves 91.7% prediction accuracy on profitability. CREDIT beats torch.compile, Triton, and optimized non-DSMEM CUDA baselines on all six workloads, with geometric-mean speedups of 1.466× on RTX 5090 and 1.318× on H100. CREDIT's source code is publicly available at https://github.com/zhengxiongli08/CREDIT.

I. INTRODUCTION

Modern GPUs increasingly expose the memory wall as peak performance has grown faster than off-chip memory bandwidth [1]. Table I summarizes this trend under the Roofline model [2] for representative NVIDIA GPUs, including Volta [3], Ampere [4], Hopper [5], [6], and Blackwell [7], [8]. The dense FP16 compute-to-bandwidth ratio rises from 139 FLOPs/byte on V100 to about 295 FLOPs/byte on H100, and Blackwell GPUs remain in the same regime. As a result, many operators fail to achieve peak performance unless they can reduce memory footprint to increase arithmetic intensity.

Starting from Hopper, NVIDIA introduced thread block clusters and DSMEM [9], [10]. A cluster is a group of cooperative thread arrays (CTAs) that are co-scheduled on streaming multiprocessors (SMs) and can synchronize as a unit. DSMEM allows these blocks to directly load, store, and perform atomic operations on one another's shared memory (SMEM). However, DSMEM operations are not free. Remote shared-memory accesses are slower than local shared memory accesses, cluster synchronization adds latency, and larger shared memory allocations or fixed cluster sizes can reduce occupancy and performance.

We propose CREDIT, which identifies which workload patterns benefit from DSMEM, predicts the profitability range for a given shape, and applies the transformation only when it pays

TABLE I: Compute-to-memory scaling in representative NVIDIA GPUs

GPUArch.Peak Perf. (TFLOP/s)Mem. BW (TB/s)Roofline Ridge (FLOPs/byte)
V100 SXMVolta1250.900139
A100 SXMAmpere3122.039153
H100 SXMHopper9903.350295
B200 SXMBlackwell22508.000281
RTX 5090Blackwell4191.792234

off. Supported by detailed profiling data on DSMEM performance, we identify that DSMEM pays off for wide reduction-reuse kernels, which reduce a wide vector and then reuse its per-element data to compute a full-size output. DSMEM can reduce off-chip memory traffic by exchanging data across a cluster, avoiding rereading from global memory between two reduction passes. CREDIT applies a transformation to split the input data across multiple blocks, where each block computes its own partial results and exchanges with others within the cluster. CREDIT also involves a cost model to determine whether it's beneficial to apply the transformation to a given workload and problem size.

We evaluate CREDIT across diverse workloads. The results show size- and architecture-dependent crossovers: no-DSMEM baselines are usually preferable for small problem sizes, while CREDIT becomes competitive when the avoided global-memory rereads amortize extra overheads introduced by DSMEM, including synchronization, DSMEM communication, and occupancy costs. Evaluations show CREDIT outperforms the fastest baseline on all six workloads, with a geometric-mean speedup of 1.466×1.466\times on RTX 5090 and 1.318×1.318\times on H100. Nsight Compute measurements demonstrate CREDIT reduces off-chip memory traffic by 33-60% on different workloads.

Our contributions in this paper are outlined as follows:

• Workload and DSMEM performance analysis. We quantitatively characterize the performance of DSMEM in terms of read/write latency, throughput, and synchronization overhead, which indicates promising workload patterns.

• Profitability cost model. We develop a profile-guided cost model that compares the time we can save against extra overheads introduced by DSMEM, including cluster synchronization, DSMEM communication, and occupancy costs, to predict profitability.

  • Cross-platform evaluation. We evaluate diverse workloads on RTX 5090 and H100 against torch.compile, Triton, and optimized no-DSMEM baselines, and validate the off-chip traffic reduction using Nsight Compute.

For the rest, Section II provides background and discusses prior works. Section III presents the proposed CREDIT framework. Finally, Section IV presents the evaluations on diverse workloads and Section V concludes the paper.

References (32)