Skip to content

amdgpu: route gfx11 and newer to MIGraphX regardless of model - #68

Open
aditya-dl wants to merge 1 commit into
onnxruntime:mainfrom
aditya-dl:fix/route-all-gfx11plus-to-migraphx-main
Open

amdgpu: route gfx11 and newer to MIGraphX regardless of model#68
aditya-dl wants to merge 1 commit into
onnxruntime:mainfrom
aditya-dl:fix/route-all-gfx11plus-to-migraphx-main

Conversation

@aditya-dl

Copy link
Copy Markdown
Collaborator

Port of #67 to main. Identical change; the release branch could not be merged directly because of unrelated commits in its history.

Problem

The Auto heuristic split gfx110x/gfx1103 by model type: LLMs to MIGraphX, everything else to DirectML. That regressed Navi31, where certification models had been running on MIGraphX and started landing on DirectML, with at least one failing there.

Change

ASIC before (non-LLM / LLM) after
below gfx11 DirectML / DirectML DirectML
gfx110x, gfx1103 DirectML / MIGraphX MIGraphX
gfx115x Strix MIGraphX / MIGraphX MIGraphX
gfx117x Medusa DirectML / DirectML DirectML
gfx12xx MIGraphX / MIGraphX MIGraphX
WebNN, any ASIC DirectML / DirectML DirectML

DirectML is now only for the three cases that need it: WebNN callers, Medusa, and anything older than gfx11. Explicit profiles and kArchModelBackend are unchanged.

No arch distinguishes LLM from non-LLM any more, so nothing reads kLlmModelArch. Left in place with a note for the next arch that needs the split.

The Auto heuristic split gfx110x/gfx1103 by model type: LLMs went to MIGraphX,
everything else to DirectML. That regressed Navi31, where certification models
had been running on MIGraphX and started landing on DirectML instead, with at
least one of them failing there.

Route everything from gfx11 up to MIGraphX. DirectML is now only for the three
cases that actually need it: WebNN callers, Medusa (gfx117x), and anything older
than gfx11.

No arch distinguishes LLM from non-LLM any more, so nothing reads kLlmModelArch.
Left in place, with a note, for the next arch that needs the split;
kArchModelBackend still works for pinning a specific model on a specific arch.

Policy unit test updated and green (47/47).
@aditya-dl
aditya-dl requested review from Zhaeong and apwojcik July 28, 2026 21:16
@aditya-dl aditya-dl self-assigned this Jul 29, 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.

1 participant