Skip to content

handle clusters#206

Open
aktemur wants to merge 2 commits into
amd-stagingfrom
users/aktemur/cluster
Open

handle clusters#206
aktemur wants to merge 2 commits into
amd-stagingfrom
users/aktemur/cluster

Conversation

@aktemur

@aktemur aktemur commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Motivation

New feature: workgroup clusters

Technical Details

Workgroups can be organized in clusters. dbgapi provides new query functions. Use these queries to show cluster information.

Test Plan

A basic test is included.

aktemur added 2 commits July 14, 2026 04:16
The function 'amdgpu_used_lanes_count' in amdgpu-tdep.c and the
function 'lane_workgroup_pos' in amd-dbgapi-target.c both compute
partial workgroup sizes the same way.  Extract the common code into a
function named 'partial_workgroup_sizes' and reuse.  This is a
refactoring with no behavioral change.
Starting with gfx1250, workgroups may be organized into clusters,
giving a workitem -> wave -> workgroup -> cluster -> grid hierarchy.
Handle clusters by taking them into account when calculating
workitem/lane coordinates, when showing wave target ids, and in the
"info dispatches" command.
@aktemur aktemur requested a review from a team as a code owner July 14, 2026 12:39
@aktemur aktemur assigned lancesix and unassigned lumachad Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants