Skip to content

handle clusters (alternative) - #287

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

handle clusters (alternative)#287
aktemur wants to merge 2 commits into
amd-stagingfrom
users/aktemur/cluster-111

Conversation

@aktemur

@aktemur aktemur commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This is the same as PR #206, except that it uses the alternative dbgapi in PR ROCm/rocm-systems#10241.

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 August 18, 2026 09:16
@lumachad lumachad removed their assignment Aug 19, 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.

2 participants