arXiv:2611.07535cs.DCNov 2026

Manuscript Offprint

arXiv:2611.07535

Characterizing CUDA Locality Domains on Blackwell GPUs

Rocky Wang, Joyce Zhou, Keith Jiang, Jason Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

A Blackwell GPU contains two compute dies, and latest CUDA provides locality domains (LDs) to control memory placement and restrict computation to a single die. Despite the introduction of these controls, their performance implications and underlying costs remain largely unexplored. We study LDs from three perspectives: memory management and access, computation, and communication. Across eight B300 GPUs, we use a controlled four-state comparison of stock execution, memory placement alone, compute binding alone, and both controls together. We also use mismatched configurations as negative controls and hardware counters to identify the causes of performance changes.

Our measurements show that the benefit of locality depends on how data is accessed. A cross-die dependent HBM access costs 193.4 ns, while cross-die streaming achieves only about 27% of the baseline bandwidth. In contrast, cross-die reads add little latency once data is resident in L2, because the data can be cached in the accessing die's local L2. These differences explain why memory placement alone improves remote reads by 2.08×2.08\times for a 1 MiB buffer, while placing a 256 MiB streaming buffer on one die makes performance 47% worse. The results also show that different operations require different controls: compute binding alone speeds up SM-issued collectives by 1.495×1.495\times, while resident-data GEMMs require both memory placement and compute binding to achieve a 1.37×1.37\times speedup. Neither control provides a consistent benefit to a bandwidth-bound attention kernel once each configuration is allowed to select its own tile size.

We also identify a substantial overhead in localized memory allocation that emerges beyond 32 MiB. The mapping loop of driver processes localized memory one 2 MiB page at a time, with 77–87% of the cost spent on full-chip barriers and TLB invalidations. By coalescing physically contiguous mappings and deferring synchronization, we reduce the time for a 1 GiB cuMemCreate operation by 7.02×7.02\times. Together, our results show that LD performance depends on the interaction between memory placement, compute placement, and access patterns: locality can accelerate remote reads and computation on resident data, but can also reduce streaming performance, and its benefits must be weighed against both hardware and driver costs.

1 Introduction

A Blackwell GPU package contains two compute dies, each with its own L2 cache slices and memory controllers [9, 6]. The two dies communicate through an on-package fabric, so an access that crosses the die boundary can cost more than one that stays within a die. CUDA 13.4 exposes this hardware topology through locality domains (LDs), giving programmers more control over where data resides and where computation runs.

LDs provide two independent controls. Memory can be placed on a selected die instead of being striped across both dies, using virtual memory management (VMM) or an LD-tagged memory pool [9]. Computation can be restricted to the 70 SMs on a selected die by partitioning SM resources and creating a green context on that partition [11, 1]. These controls give programmers a way to make data and

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: jason@scitix.ai computation local to each other. However, the performance effects of these controls have received little systematic study, and it is not clear when using them is worthwhile.

Existing guidance on LDs generally points to performance benefits from improved locality [9, 14]. Our measurements, however, show that the results depend strongly on how data is accessed. Placing a 1 MiB buffer read by a remote GPU increases transfer bandwidth from 75.7 to 157.2 GB/s, more than doubling throughput. The same memory placement produces no measurable improvement for a 1 MiB buffer used by a local collective. For a local kernel streaming a 256 MiB buffer, it makes performance 47% worse. Thus, placing data on one die does not necessarily make an application faster. To understand why these results differ, we need to look at which component accesses the data, where that component runs, and how often data must cross the die boundary.

We study LDs on eight B300 GPUs, covering memory management and access, computation, and communication. Across these experiments, we use the same four configurations: stock execution, memory placement alone, compute binding alone, and both controls together. This comparison lets us separate the effects of the two controls and determine whether they work independently or need to be combined. We also use mismatched placement as a negative control, hardware counters to examine memory behavior, and SM-count controls to distinguish locality benefits from the effects of using fewer SMs.

To interpret the measurements, we develop a cost model that separates the cost of a cross-die access into two parts: the latency of each cross-die hop and the bandwidth cost of moving data. The first matters when an operation depends on each access completing before the next can proceed; the second matters when large amounts of data must be transferred. The benefit of LD therefore depends on both the access pattern and which placement control changes the path of an access. For example, placing a buffer on the appropriate die can help a remote GPU read it without changing where the copy engine runs. A local collective can instead benefit from binding its computation to one die, even when changing memory placement has little effect. A kernel that repeatedly reads resident data, such as GEMM weights, may need both controls to work together. The model turns these observations into testable predictions, which we evaluate using dependent-load and streaming microbenchmarks, hardware-counter analysis, and controlled workload experiments.

Our measurements reveal several important differences in LD behavior. Cross-die dependent HBM accesses cost 193.4 ns, and cross-die streaming achieves only about 27% of baseline bandwidth. Yet cross-die reads add little latency once the data is resident in L2: the accessing die can retain a local copy, while writes continue to cross the fabric on each access. This difference helps explain why memory placement benefits some access patterns but not others. We also find that the two placement controls can complement each other. For resident-data GEMMs, memory placement alone achieves only 0.75×0.75\times the baseline performance, and compute binding alone achieves 1.04×1.04\times, while using both achieves 1.37×1.37\times. For SM-issued collectives, compute binding alone delivers a 1.495×1.495\times speedup, whereas a configuration using a comparable number of SMs across both dies achieves only 0.999×0.999\times. In contrast, an apparent 1.27×1.27\times improvement for a bandwidth-bound attention kernel disappears when each configuration is allowed to select its own tile size. These results show why LD performance must be evaluated with controlled comparisons rather than inferred from locality alone.

We also examine the cost of allocating localized memory. Beyond a 32 MiB threshold, allocation overhead becomes substantial. We trace this cost to the open-source GPU driver's mapping loop, which processes localized memory one 2 MiB page at a time. Full-chip barriers and TLB invalidations account for 77–87% of the cost of each call, rather than the page-table updates themselves. We modify the driver to coalesce physically contiguous mappings and defer synchronization. This reduces the time for a 1 GiB cuMemCreate operation by 7.02×7.02\times, although some overhead remains. This result shows that the cost of using LDs comes not only from data access and placement, but also from the memory-management path used to establish that placement.

Our contributions are as follows:

  1. A cost model for cross-die accesses. We develop a two-component model that separates per-hop latency from data-transfer bandwidth cost. The model predicts when memory placement, compute binding, or both should improve performance based on the accessor and the location of the data.

  2. A controlled measurement methodology. We evaluate LDs across memory management and access, computation, and communication on eight B300 GPUs. By comparing stock execution, memory-only placement, compute-only binding, and full placement, and by using negative controls, hardware counters, and SM-count controls, we isolate the effects of locality from other factors.

  3. A characterization of LD performance. We show that LDs can improve remote-GPU reads and SM-issued collectives, that resident-data GEMMs benefit from combining memory and compute placement, and that localized placement can substantially hurt streaming performance. We also identify read-write asymmetry, the limited effect of cross-die reads on L2-resident data, and the importance of controlling for kernel configuration when measuring speedups.

  4. A driver fix for localized allocation overhead. We identify an allocation overhead that emerges beyond 32 MiB and trace it to repeated mapping calls and synchronization in the open-source driver. By coalescing contiguous mappings and deferring synchronization, we reduce the time for a 1 GiB cuMemCreate operation by 7.02×.