[llvm] [AMDGPU][docs] define cluster scope and multicast loads (gfx1250) (PR #225310)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 01:22:49 PDT 2026


https://github.com/ssahasra updated https://github.com/llvm/llvm-project/pull/225310

>From 851a76f16ed29918633a19654c85dc8e76e84bd3 Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Thu, 6 Aug 2026 18:27:46 +0530
Subject: [PATCH 1/5] [AMDGPU][docs] Describe cluster broadcast using async
 loads

Assisted-By: AI Coding Assistant
---
 llvm/docs/AMDGPUDMAOperations.md | 49 ++++++++++++++++++++++++++++++--
 llvm/docs/AMDGPUMemoryModel.md   |  2 +-
 llvm/docs/AMDGPUUsage.rst        | 46 ++++++++++++++++++++++++++++++
 3 files changed, 93 insertions(+), 4 deletions(-)

diff --git a/llvm/docs/AMDGPUDMAOperations.md b/llvm/docs/AMDGPUDMAOperations.md
index eff09848e4fed2..00e08c05f16ea7 100644
--- a/llvm/docs/AMDGPUDMAOperations.md
+++ b/llvm/docs/AMDGPUDMAOperations.md
@@ -99,7 +99,7 @@ void @llvm.amdgcn.{global|cluster}.load.async.to.lds.b<N>(
     ptr addrspace(3) %lds_base, ; LDS base pointer (per-lane)
     i32 immarg %offset,         ; offset (immediate) applied to both global and LDS address
     i32 immarg %cpol,           ; cache policy (immediate)
-    [i32 %m0])                  ; workgroup broadcast mask, cluster variants only (in M0)
+    [i32 %mask])                ; workgroup broadcast mask, cluster variants only (wave-uniform, in M0)
 ```
 
 The bit-size encoded in the name can be 8, 32, 64 or 128.
@@ -107,8 +107,51 @@ The bit-size encoded in the name can be 8, 32, 64 or 128.
 Loads data from global memory to LDS. The `%offset` is applied to both the
 global and LDS addresses.
 
-The `cluster` variants add a `%m0` argument for workgroup broadcast. The
-broadcast mask selects which workgroups within a cluster participate in the load.
+(amdgpu-cluster-broadcast-dma)=
+
+**Cluster Broadcast**
+
+The `cluster` variants let several workgroups in a {ref}`workgroup cluster
+<amdgpu-clusters>` share a single fetch from global memory when they are all
+loading the same data to their respective LDS. The `%mask` argument identifies
+the group of workgroups whose requests may be combined, and controls the request
+timeout. The mask is wave-uniform and passed in the `M0` register:
+
+- Bits `[15:0]` are the *workgroup broadcast mask*: bit `i` corresponds to the
+  workgroup with cluster index `i`. Each workgroup that wants to participate in
+  the combined fetch must set its own bit and all participating workgroups must
+  supply an identical mask (and the same address). If the mask is all-zero, the
+  operation behaves like an ordinary, non-cluster load: it returns only to the
+  requesting workgroup.
+- Bit `[16]` selects the timeout behavior. When clear, a target-defined timeout
+  is used: requests are combined if they arrive within that window. When set,
+  an *early timeout* is used: as soon as the L2 cache supplies the data, it is
+  returned to whichever waves have already issued their requests.
+
+Each participating workgroup issues its own request, with one wave per
+workgroup. For requests that arrive within the timeout, the L2 cache is accessed
+only once, and a copy of the loaded data is written into the LDS of each of
+those workgroups. Workgroups that issue their request later trigger a new,
+separate combined fetch. The data is written at the same LDS location
+(`%lds_base` plus `%offset`) in each participating workgroup.
+
+Because each wave's request only ever writes to its own workgroup's LDS, this is
+an ordinary `addrspace(3)` access with scope "workgroup", exactly like a
+non-cluster variant of this load. Completion is tracked independently for each
+request using the requesting wave's own
+{ref}`asyncmarks<amdgpu-async-operations>`; there is no signal that tells a wave
+when the *other* participating workgroups have completed their own requests.
+Applications that need every participating workgroup to observe the shared data
+must synchronize separately across those workgroups.
+
+The `cluster` variants are only available on targets that have the
+`mcast-load-insts` subtarget feature (e.g., GFX1250). Using them on any other
+target is not supported. Note that this feature is distinct from workgroup
+cluster support itself: a target may support clusters without providing these
+broadcast DMA instructions.
+
+On the `gfx1250-strict` subtarget, the mask is always forced to zero and no
+broadcast occurs, regardless of the value supplied.
 
 ```llvm
 void @llvm.amdgcn.global.store.async.from.lds.b<N>(
diff --git a/llvm/docs/AMDGPUMemoryModel.md b/llvm/docs/AMDGPUMemoryModel.md
index 0a7f023bf19ac8..938daabe3fc011 100644
--- a/llvm/docs/AMDGPUMemoryModel.md
+++ b/llvm/docs/AMDGPUMemoryModel.md
@@ -74,7 +74,7 @@ target-defined scopes and constraints:
 
 - *system scope* (same as LLVM)
 - "agent" scope
-- "cluster" scope
+- "cluster" scope (see {ref}`amdgpu-clusters`)
 - "workgroup" scope
 - "wavefront" scope
 - "singlethread" scope (same as LLVM)
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 2d6263402164f2..fd25f5cd3ad699 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1451,6 +1451,52 @@ upper 32 bits of the generic pointer.
 As the LDS aperture is defined by its 16 most significant bits, we can theoretically
 support up to ``(1 << 16) - 1`` synthetic apertures safely.
 
+.. _amdgpu-clusters:
+
+Clusters
+--------
+
+On targets that support workgroup clusters (for example ``gfx1250``), the
+workgroups of a grid can be grouped into *clusters*. A cluster is a fixed-size
+block of workgroups that are co-scheduled on the same shader engine so that
+they can cooperate more closely than workgroups in different clusters.
+
+On each subtarget, the maximum size of a cluster is limited by the number of
+WGPs on a shader engine; each workgroup in a cluster runs on a separate WGP. A
+WGP may simultaneously host workgroups from different clusters. Clusters may be
+1D, 2D, or 3D. The cluster dimensions are specified with the
+``"amdgpu-cluster-dims"`` function attribute (see
+:ref:`amdgpu-llvm-ir-attributes-table`). A value of ``0,0,0`` disables
+clustering for the function.
+
+Every workgroup in a cluster is the same size, and every cluster in a dispatch
+is the same size.
+
+Within a cluster, several workgroups can combine matching load requests via
+:ref:`cluster broadcast DMA operations <amdgpu-cluster-broadcast-dma>` so that
+each populates its own LDS from a single shared fetch of global memory. The
+``cluster`` memory scope (see
+:ref:`amdgpu-memory-scopes`) synchronizes operations performed by threads in
+workgroups of the same cluster. On targets that do not support clusters,
+``cluster`` scope behaves like ``agent`` scope.
+
+A workgroup can query its position within the grid and its cluster using the
+following intrinsics:
+
+* ``llvm.amdgcn.cluster.id.{x,y,z}`` -- the coordinates of this workgroup's
+  cluster within the grid.
+* ``llvm.amdgcn.cluster.workgroup.id.{x,y,z}`` -- the coordinates of this
+  workgroup within its cluster.
+* ``llvm.amdgcn.cluster.workgroup.flat.id`` -- the flattened index of this
+  workgroup within its cluster. The linearization treats X as the innermost
+  dimension and Z as the outermost:
+
+  ``flat_id = x + y * cluster_dim_x + z * cluster_dim_x * cluster_dim_y``.
+* ``llvm.amdgcn.cluster.workgroup.max.id.{x,y,z}`` -- the largest workgroup
+  index within the cluster in each dimension.
+* ``llvm.amdgcn.cluster.workgroup.max.flat.id`` -- the largest flattened
+  workgroup within the cluster.
+
 .. _amdgpu-memory-scopes:
 
 Memory Scopes

>From 32d482224d1367c9f5ecf537bdffaaf58d9b9b22 Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Wed, 30 Sep 2026 14:45:44 +0530
Subject: [PATCH 2/5] it's multicast, not broadcast; also don't assume a
 formula for flat ID

---
 llvm/docs/AMDGPUDMAOperations.md | 22 +++++++++++-----------
 llvm/docs/AMDGPUUsage.rst        | 13 +++++++------
 2 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/llvm/docs/AMDGPUDMAOperations.md b/llvm/docs/AMDGPUDMAOperations.md
index 00e08c05f16ea7..e8f5dd029387ef 100644
--- a/llvm/docs/AMDGPUDMAOperations.md
+++ b/llvm/docs/AMDGPUDMAOperations.md
@@ -99,7 +99,7 @@ void @llvm.amdgcn.{global|cluster}.load.async.to.lds.b<N>(
     ptr addrspace(3) %lds_base, ; LDS base pointer (per-lane)
     i32 immarg %offset,         ; offset (immediate) applied to both global and LDS address
     i32 immarg %cpol,           ; cache policy (immediate)
-    [i32 %mask])                ; workgroup broadcast mask, cluster variants only (wave-uniform, in M0)
+    [i32 %mask])                ; workgroup multicast mask, cluster variants only (wave-uniform, in M0)
 ```
 
 The bit-size encoded in the name can be 8, 32, 64 or 128.
@@ -107,9 +107,9 @@ The bit-size encoded in the name can be 8, 32, 64 or 128.
 Loads data from global memory to LDS. The `%offset` is applied to both the
 global and LDS addresses.
 
-(amdgpu-cluster-broadcast-dma)=
+(amdgpu-cluster-multicast-dma)=
 
-**Cluster Broadcast**
+**Cluster Multicast Loads**
 
 The `cluster` variants let several workgroups in a {ref}`workgroup cluster
 <amdgpu-clusters>` share a single fetch from global memory when they are all
@@ -117,22 +117,22 @@ loading the same data to their respective LDS. The `%mask` argument identifies
 the group of workgroups whose requests may be combined, and controls the request
 timeout. The mask is wave-uniform and passed in the `M0` register:
 
-- Bits `[15:0]` are the *workgroup broadcast mask*: bit `i` corresponds to the
+- Bits `[15:0]` are the *workgroup multicast mask*: bit `i` corresponds to the
   workgroup with cluster index `i`. Each workgroup that wants to participate in
   the combined fetch must set its own bit and all participating workgroups must
   supply an identical mask (and the same address). If the mask is all-zero, the
   operation behaves like an ordinary, non-cluster load: it returns only to the
   requesting workgroup.
 - Bit `[16]` selects the timeout behavior. When clear, a target-defined timeout
-  is used: requests are combined if they arrive within that window. When set,
+  is used: requests may be combined if they arrive within that window. When set,
   an *early timeout* is used: as soon as the L2 cache supplies the data, it is
   returned to whichever waves have already issued their requests.
 
 Each participating workgroup issues its own request, with one wave per
-workgroup. For requests that arrive within the timeout, the L2 cache is accessed
-only once, and a copy of the loaded data is written into the LDS of each of
-those workgroups. Workgroups that issue their request later trigger a new,
-separate combined fetch. The data is written at the same LDS location
+workgroup. When requests are combined, they share a single L2 fetch, and a copy
+of the loaded data is written into the LDS of each requesting workgroup.
+Workgroups that issue their request later make a separate request, which may
+combine with other later requests. The data is written at the same LDS location
 (`%lds_base` plus `%offset`) in each participating workgroup.
 
 Because each wave's request only ever writes to its own workgroup's LDS, this is
@@ -148,10 +148,10 @@ The `cluster` variants are only available on targets that have the
 `mcast-load-insts` subtarget feature (e.g., GFX1250). Using them on any other
 target is not supported. Note that this feature is distinct from workgroup
 cluster support itself: a target may support clusters without providing these
-broadcast DMA instructions.
+multicast load instructions.
 
 On the `gfx1250-strict` subtarget, the mask is always forced to zero and no
-broadcast occurs, regardless of the value supplied.
+multicast occurs, regardless of the value supplied.
 
 ```llvm
 void @llvm.amdgcn.global.store.async.from.lds.b<N>(
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index fd25f5cd3ad699..2026008dae6896 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1473,7 +1473,7 @@ Every workgroup in a cluster is the same size, and every cluster in a dispatch
 is the same size.
 
 Within a cluster, several workgroups can combine matching load requests via
-:ref:`cluster broadcast DMA operations <amdgpu-cluster-broadcast-dma>` so that
+:ref:`cluster multicast DMA operations <amdgpu-cluster-multicast-dma>` so that
 each populates its own LDS from a single shared fetch of global memory. The
 ``cluster`` memory scope (see
 :ref:`amdgpu-memory-scopes`) synchronizes operations performed by threads in
@@ -1487,11 +1487,12 @@ following intrinsics:
   cluster within the grid.
 * ``llvm.amdgcn.cluster.workgroup.id.{x,y,z}`` -- the coordinates of this
   workgroup within its cluster.
-* ``llvm.amdgcn.cluster.workgroup.flat.id`` -- the flattened index of this
-  workgroup within its cluster. The linearization treats X as the innermost
-  dimension and Z as the outermost:
-
-  ``flat_id = x + y * cluster_dim_x + z * cluster_dim_x * cluster_dim_y``.
+* ``llvm.amdgcn.cluster.workgroup.flat.id`` -- this workgroup's position within
+  its cluster: a value between ``0`` and the number of workgroups in the
+  cluster minus one, assigned to each workgroup in the cluster. Every wave in
+  the workgroup is initialized with its workgroup's value. This is the same
+  index used to select destination workgroups in the mask of a
+  :ref:`cluster multicast DMA <amdgpu-cluster-multicast-dma>`.
 * ``llvm.amdgcn.cluster.workgroup.max.id.{x,y,z}`` -- the largest workgroup
   index within the cluster in each dimension.
 * ``llvm.amdgcn.cluster.workgroup.max.flat.id`` -- the largest flattened

>From 630c12588d1e7f8bebe6ebe1baa88da1229b91e4 Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Thu, 8 Oct 2026 13:49:42 +0530
Subject: [PATCH 3/5] informational note about combining requests; use general
 words like "load" and "memory"

---
 llvm/docs/AMDGPUDMAOperations.md | 100 ++++++++++++++++++-------------
 llvm/docs/AMDGPUUsage.rst        |   9 ++-
 2 files changed, 62 insertions(+), 47 deletions(-)

diff --git a/llvm/docs/AMDGPUDMAOperations.md b/llvm/docs/AMDGPUDMAOperations.md
index e8f5dd029387ef..d63b11a19e7b99 100644
--- a/llvm/docs/AMDGPUDMAOperations.md
+++ b/llvm/docs/AMDGPUDMAOperations.md
@@ -24,7 +24,7 @@ ensures completion before their side-effects are used.
 GFX9 DMA instructions implement volatile (via `aux/cpol` bit 31) and
 nontemporal (via metadata) as if they were loads from the global address space.
 
-**Flat/Global Addressing**
+#### Flat/Global Addressing
 
 ```llvm
 void @llvm.amdgcn.load[.async].to.lds.pN(
@@ -59,7 +59,7 @@ void @llvm.amdgcn.global.load[.async].lds(
 
 This is identical to `@llvm.amdgcn.load[.async].to.lds.p1`.
 
-**Buffer Addressing**
+#### Buffer Addressing
 
 ```llvm
 void @llvm.amdgcn.{raw|struct}[.ptr].buffer.load[.async].lds(
@@ -91,7 +91,7 @@ GFX1250 LDS DMA instructions implement nontemporal (via metadata) as if they
 were loads from the global address space. Tensor DMA instructions do not support
 volatile or nontemporal.
 
-**Global Addressing**
+#### Global Addressing
 
 ```llvm
 void @llvm.amdgcn.{global|cluster}.load.async.to.lds.b<N>(
@@ -102,47 +102,73 @@ void @llvm.amdgcn.{global|cluster}.load.async.to.lds.b<N>(
     [i32 %mask])                ; workgroup multicast mask, cluster variants only (wave-uniform, in M0)
 ```
 
-The bit-size encoded in the name can be 8, 32, 64 or 128.
-
 Loads data from global memory to LDS. The `%offset` is applied to both the
 global and LDS addresses.
 
+```llvm
+void @llvm.amdgcn.global.store.async.from.lds.b<N>(
+    ptr addrspace(1) %dst,      ; global base pointer to store to (per-lane)
+    ptr addrspace(3) %lds_base, ; LDS base pointer to load from (per-lane)
+    i32 immarg %offset,         ; offset (immediate) applied to both global and LDS address
+    i32 immarg %cpol)           ; cache policy (immediate)
+```
+
+Stores data from LDS to global memory.
+
+The bit-size encoded in the name can be 8, 32, 64 or 128.
+
 (amdgpu-cluster-multicast-dma)=
 
-**Cluster Multicast Loads**
+#### Cluster Multicast Loads
+
+The `.cluster` variant is a *multicast load* that allows workgroups in a
+{ref}`cluster <amdgpu-clusters>` to share a load of the same data from global
+memory into their respective LDS. Each lane in a wave supplies its own global
+source address and LDS destination address.
 
-The `cluster` variants let several workgroups in a {ref}`workgroup cluster
-<amdgpu-clusters>` share a single fetch from global memory when they are all
-loading the same data to their respective LDS. The `%mask` argument identifies
-the group of workgroups whose requests may be combined, and controls the request
-timeout. The mask is wave-uniform and passed in the `M0` register:
+The mask is wave-uniform and passed in the `M0` register:
 
-- Bits `[15:0]` are the *workgroup multicast mask*: bit `i` corresponds to the
+- Bits `[15:0]` are the *workgroup multicast mask*: bit `i` indicates the
   workgroup with cluster index `i`. Each workgroup that wants to participate in
-  the combined fetch must set its own bit and all participating workgroups must
+  the multicast must set its own bit and all participating workgroups must
   supply an identical mask (and the same address). If the mask is all-zero, the
   operation behaves like an ordinary, non-cluster load: it returns only to the
   requesting workgroup.
 - Bit `[16]` selects the timeout behavior. When clear, a target-defined timeout
   is used: requests may be combined if they arrive within that window. When set,
-  an *early timeout* is used: as soon as the L2 cache supplies the data, it is
-  returned to whichever waves have already issued their requests.
-
-Each participating workgroup issues its own request, with one wave per
-workgroup. When requests are combined, they share a single L2 fetch, and a copy
-of the loaded data is written into the LDS of each requesting workgroup.
-Workgroups that issue their request later make a separate request, which may
-combine with other later requests. The data is written at the same LDS location
-(`%lds_base` plus `%offset`) in each participating workgroup.
-
-Because each wave's request only ever writes to its own workgroup's LDS, this is
-an ordinary `addrspace(3)` access with scope "workgroup", exactly like a
-non-cluster variant of this load. Completion is tracked independently for each
-request using the requesting wave's own
-{ref}`asyncmarks<amdgpu-async-operations>`; there is no signal that tells a wave
-when the *other* participating workgroups have completed their own requests.
-Applications that need every participating workgroup to observe the shared data
-must synchronize separately across those workgroups.
+  an *early timeout* is used: as soon as data is available, it is returned to
+  whichever waves have already issued their requests.
+
+Each participating thread receives a copy of the loaded data into its own
+workgroup's LDS at `%lds_base` plus `%offset`. This is an ordinary
+`addrspace(3)` access with scope "workgroup", exactly like a non-cluster variant
+of this load.
+
+**Combining multicast requests**
+
+[This section is informational]
+
+Two multicast requests are candidates for combining only if they satisfy the
+following conditions:
+- Both specify the same global source location.
+- Either both requests originate from converged dynamic instances in the same
+  wave, or they originate from different participating workgroups.
+
+Actual combining depends on implementation-specific details such as the
+target-defined request matching criteria, timeout, availability of tracking
+slots, etc.
+
+A request that does not join a combined load can proceed separately and may
+combine with other requests. All requests complete eventually.
+
+Completion is tracked using {ref}`asyncmarks<amdgpu-async-operations>`.
+Completion of a multicast load does not establish any synchronization with
+participating workgroups. The application must separately synchronize across the
+participating workgroups if required.
+
+**Target-specific notes**
+
+[This section is informational]
 
 The `cluster` variants are only available on targets that have the
 `mcast-load-insts` subtarget feature (e.g., GFX1250). Using them on any other
@@ -153,17 +179,7 @@ multicast load instructions.
 On the `gfx1250-strict` subtarget, the mask is always forced to zero and no
 multicast occurs, regardless of the value supplied.
 
-```llvm
-void @llvm.amdgcn.global.store.async.from.lds.b<N>(
-    ptr addrspace(1) %dst,      ; global base pointer to store to (per-lane)
-    ptr addrspace(3) %lds_base, ; LDS base pointer to load from (per-lane)
-    i32 immarg %offset,         ; offset (immediate) applied to both global and LDS address
-    i32 immarg %cpol)           ; cache policy (immediate)
-```
-
-Stores data from LDS to global memory.
-
-**Tensor Addressing**
+#### Tensor Addressing
 
 ```llvm
 void @llvm.amdgcn.tensor.{load.to|store.from}.lds(
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 2026008dae6896..709b66c654923e 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1474,11 +1474,10 @@ is the same size.
 
 Within a cluster, several workgroups can combine matching load requests via
 :ref:`cluster multicast DMA operations <amdgpu-cluster-multicast-dma>` so that
-each populates its own LDS from a single shared fetch of global memory. The
-``cluster`` memory scope (see
-:ref:`amdgpu-memory-scopes`) synchronizes operations performed by threads in
-workgroups of the same cluster. On targets that do not support clusters,
-``cluster`` scope behaves like ``agent`` scope.
+each populates its own LDS through a shared load of the same data. The
+``cluster`` memory scope (see :ref:`amdgpu-memory-scopes`) synchronizes
+operations performed by threads in workgroups of the same cluster. On targets
+that do not support clusters, ``cluster`` scope behaves like ``agent`` scope.
 
 A workgroup can query its position within the grid and its cluster using the
 following intrinsics:

>From c8fffb766c98590f0c9377e89af37b51b215e438 Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Thu, 8 Oct 2026 17:18:32 +0530
Subject: [PATCH 4/5] eliminate the term "request" ... these are just fancy
 loads, after all

---
 llvm/docs/AMDGPUDMAOperations.md | 44 +++++++++++++++-----------------
 llvm/docs/AMDGPUUsage.rst        |  5 +---
 2 files changed, 22 insertions(+), 27 deletions(-)

diff --git a/llvm/docs/AMDGPUDMAOperations.md b/llvm/docs/AMDGPUDMAOperations.md
index d63b11a19e7b99..87e498c3251485 100644
--- a/llvm/docs/AMDGPUDMAOperations.md
+++ b/llvm/docs/AMDGPUDMAOperations.md
@@ -132,39 +132,37 @@ The mask is wave-uniform and passed in the `M0` register:
   workgroup with cluster index `i`. Each workgroup that wants to participate in
   the multicast must set its own bit and all participating workgroups must
   supply an identical mask (and the same address). If the mask is all-zero, the
-  operation behaves like an ordinary, non-cluster load: it returns only to the
-  requesting workgroup.
+  operation is performed as an ordinary load.
 - Bit `[16]` selects the timeout behavior. When clear, a target-defined timeout
-  is used: requests may be combined if they arrive within that window. When set,
-  an *early timeout* is used: as soon as data is available, it is returned to
-  whichever waves have already issued their requests.
+  is used: loads may be combined if they arrive within that window. When set,
+  an *early timeout* is used: outstanding loads are completed as soon as data is
+  available.
 
-Each participating thread receives a copy of the loaded data into its own
-workgroup's LDS at `%lds_base` plus `%offset`. This is an ordinary
-`addrspace(3)` access with scope "workgroup", exactly like a non-cluster variant
-of this load.
+Completion is tracked using {ref}`asyncmarks<amdgpu-async-operations>`. Each
+participating thread receives a copy of the loaded data into its own workgroup's
+LDS at `%lds_base` plus `%offset`. In the memory model, this behaves in the same
+way as an equivalent non-multicast operation.
 
-**Combining multicast requests**
+Completion of a multicast load operation does not establish any synchronization
+with the participating workgroups. The application must separately synchronize
+across the participating workgroups if required.
+
+**Combining Load Operations**
 
 [This section is informational]
 
-Two multicast requests are candidates for combining only if they satisfy the
+When two threads execute a multicast instruction, the resulting load operations
+are candidates for combining into a multicast load only if they satisfy the
 following conditions:
 - Both specify the same global source location.
-- Either both requests originate from converged dynamic instances in the same
-  wave, or they originate from different participating workgroups.
-
-Actual combining depends on implementation-specific details such as the
-target-defined request matching criteria, timeout, availability of tracking
-slots, etc.
+- Either both loads originate from converged dynamic instances in the same wave,
+  or they originate from different participating workgroups.
 
-A request that does not join a combined load can proceed separately and may
-combine with other requests. All requests complete eventually.
+The actual combining of these load operations depends on target-defined matching
+criteria, timeout, availability of tracking slots, etc.
 
-Completion is tracked using {ref}`asyncmarks<amdgpu-async-operations>`.
-Completion of a multicast load does not establish any synchronization with
-participating workgroups. The application must separately synchronize across the
-participating workgroups if required.
+A load operation that is not combined into a multicast load eventually
+completes, either as part of a subsequent multicast load or by itself.
 
 **Target-specific notes**
 
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 709b66c654923e..1cced05b495fab 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1472,10 +1472,7 @@ clustering for the function.
 Every workgroup in a cluster is the same size, and every cluster in a dispatch
 is the same size.
 
-Within a cluster, several workgroups can combine matching load requests via
-:ref:`cluster multicast DMA operations <amdgpu-cluster-multicast-dma>` so that
-each populates its own LDS through a shared load of the same data. The
-``cluster`` memory scope (see :ref:`amdgpu-memory-scopes`) synchronizes
+The ``cluster`` memory scope (see :ref:`amdgpu-memory-scopes`) synchronizes
 operations performed by threads in workgroups of the same cluster. On targets
 that do not support clusters, ``cluster`` scope behaves like ``agent`` scope.
 

>From 866bca5aecedcc9a9e13ff8861f0fda59aa3a524 Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Fri, 9 Oct 2026 13:52:16 +0530
Subject: [PATCH 5/5] small note on what convergence means

---
 llvm/docs/AMDGPUDMAOperations.md | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/llvm/docs/AMDGPUDMAOperations.md b/llvm/docs/AMDGPUDMAOperations.md
index 87e498c3251485..51fa3448bf35a3 100644
--- a/llvm/docs/AMDGPUDMAOperations.md
+++ b/llvm/docs/AMDGPUDMAOperations.md
@@ -158,8 +158,13 @@ following conditions:
 - Either both loads originate from converged dynamic instances in the same wave,
   or they originate from different participating workgroups.
 
-The actual combining of these load operations depends on target-defined matching
-criteria, timeout, availability of tracking slots, etc.
+Convergence implies that within a wave, the multicast does not combine two
+operations performed by the same thread, or two operations performed by
+different threads but at different points in the execution.
+
+The actual combining of these load operations depends on implementation details
+such as target-defined matching criteria, timeout, availability of tracking
+slots, etc.
 
 A load operation that is not combined into a multicast load eventually
 completes, either as part of a subsequent multicast load or by itself.



More information about the llvm-commits mailing list