Skip to content

handle clusters#206

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

handle clusters#206
aktemur wants to merge 3 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 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
aktemur added 3 commits July 15, 2026 08:37
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.
This is a temp patch to print extra information.  It won't be merged.
@aktemur aktemur force-pushed the users/aktemur/cluster branch from baff134 to 5b5bb47 Compare July 15, 2026 14:00
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