Skip to content

feat: rename MorphiZenEP integration to AMDGPU (load amdgpu-ep.dll) - #12

Merged
AMDmoore merged 1 commit into
AMDmoore:dynamic-shape-morphizen-prfrom
zz002:feat/amdgpu-ep
Jun 18, 2026
Merged

feat: rename MorphiZenEP integration to AMDGPU (load amdgpu-ep.dll)#12
AMDmoore merged 1 commit into
AMDmoore:dynamic-shape-morphizen-prfrom
zz002:feat/amdgpu-ep

Conversation

@zz002

@zz002 zz002 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Retarget the OGA execution provider integration from MorphiZenEP to the AMD GPU umbrella EP (amdgpu-ep.dll), so OGA loads the umbrella instead of onnxruntime_morphizen_ep.dll directly. The umbrella forwards to the HIP backend, selected via the profile provider option.

  • Rename src/morphizen_ep -> src/amdgpu and DeviceType::MorphiZenEP -> DeviceType::AMDGPU across generators.cpp, model.cpp, the session_options dispatch table, smartptrs.h, and the cmake source glob.
  • interface.cpp: register the EP as amdgpu, load amdgpu-ep.dll / libamdgpu-ep.so, env override AMDGPU_EP_PATH. SetupProvider also mirrors provider options into ep.<name>.* session config entries, which is where the umbrella reads them.
  • EnsureDeviceOrtInit: the device-init dummy session reuses the AMDGPU provider options from genai_config.json so the umbrella can select its backend (the umbrella requires a profile; nothing is hardcoded).

Config selects it via:

"provider_options": [{ "AMDGPU": {"profile": "llm"} }]

Rename the OGA execution provider integration from MorphiZenEP to AMDGPU so it targets the AMD GPU umbrella EP (amdgpu-ep.dll) instead of loading onnxruntime_morphizen_ep.dll directly. The umbrella forwards to the HIP backend, selected via the "profile" provider option.

- Rename src/morphizen_ep -> src/amdgpu and DeviceType::MorphiZenEP -> DeviceType::AMDGPU across generators.cpp, model.cpp, the session_options dispatch table, smartptrs.h, and the cmake source glob.
- interface.cpp: register the EP as "amdgpu", load amdgpu-ep.dll (libamdgpu-ep.so), env override AMDGPU_EP_PATH. SetupProvider also mirrors provider options into ep.<name>.* session config entries since the umbrella reads them from there.
- EnsureDeviceOrtInit: the device-init dummy session reuses the AMDGPU provider options from genai_config so the umbrella can select its backend; no profile is hardcoded.

genai_config.json selects it via: "provider_options": [{ "AMDGPU": {"profile": "llm"} }]

Co-authored-by: Cursor <cursoragent@cursor.com>
@AMDmoore
AMDmoore merged commit 74b2ef2 into AMDmoore:dynamic-shape-morphizen-pr Jun 18, 2026
1 of 11 checks passed
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