Cherry-pick MiGraphX EP fixes from upstream for rel-1.23.0 (#25659)
Cherry-pick MiGraphX EP fixes from upstream for rel-1.23.0
This PR cherry-picks three critical fixes for the MiGraphX Execution
Provider:
1. Fix compilation after cherry-picking from win-onnxruntime (#25516)
- Adds ORT_UNUSED_PARAMETER(num_devices) to fix unused parameter warning
- Corrects struct usage in CreateIExecutionProvider method
2. Fix CreateExecutionProviderFactory with correct struct and change
vendor_id (#25625)
- Updates vendor_id from 0x1002 to 0x9999 to allow DML EP to be default
- Ensures proper device ordering in provider_policy_context.cc
3. Update OrtEpFactory in MiGraphX EP (#25567)
- Adds complete OrtEpFactory infrastructure for auto EP selection
- Implements all required factory methods with noexcept specifiers
- Sets ort_version_supported to ORT_API_VERSION
- Enables MiGraphX/AMDGPU EP integration with hardware device detection
These fixes ensure MiGraphX EP builds correctly and integrates properly
with
the ORT execution provider selection framework in the 1.23.0 release.
Cherry-picked commits:
- 87f149971f6b47cc82e84e08685193f31bb0cf8e
- 14ca6df1f21cb9cef80879e6f786016273cae6e1
- 131cf40dc25a1611e239b782eb5239cc4921f34e
---------
Co-authored-by: Artur Wojcik <artur.wojcik@amd.com>
Co-authored-by: Owen Zhang <owen_zzz@hotmail.com>
Co-authored-by: ozhang <ozhang@amd.com>