Skip to content

fix(anvil): spread gfx1250 loopback over peer-link engines when there is no CPU link - #766

Merged
jhchouuu merged 1 commit into
mainfrom
jiahzhou/anvil-loopback-no-hostlink
Oct 14, 2026
Merged

jhchouuu merged 1 commit into
mainfrom
jiahzhou/anvil-loopback-no-hostlink

Conversation

@jhchouuu

@jhchouuu jhchouuu commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

No description provided.

… is no CPU link

On HELIOS nodes KFD reports a CPU io_link for only two of the four gfx1250
GPUs. getHostLinkEngineMask() returns 0 for the other two, so every loopback
channel fell back to engine 0, where ROCr's blit queues already sit: the
seventh queue on that engine fails with ENOMEM ("No more SDMA queue to
allocate for target ID 0"), which hsaKmtCreateQueueExt reports as
HSAKMT_STATUS_NO_MEMORY (6). Those GPUs now take the union of the engines KFD
recommends on their peer links (all 16 there). GPUs with a CPU link, and every
other arch, are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@jhchouuu
jhchouuu merged commit bde9c01 into main Oct 14, 2026
@jhchouuu
jhchouuu deleted the jiahzhou/anvil-loopback-no-hostlink branch October 14, 2026 10:51
yangyuhuiling pushed a commit that referenced this pull request Oct 16, 2026
Resolves the anvil conflict. The branch carried 173c24e ("fix(sdma): use peer
engine masks when gfx1250 has no CPU link") and main has since landed the same
fix as bde9c01 (#766): same function, same logic, differing only in brace
style and a fuller comment. Both sides are taken from main, so anvil.hpp and
anvil.cpp are now byte-identical to it and getAnyLinkEngineMask exists once.

README.md and ep_plans.py merged without conflict.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

1 participant