Expand description
ONNX Runtime installer — ports scripts/build_onnxruntime_multi.sh.
Constructs correct cmake commands with ROCm integration and Python bindings, builds from source using ONNX Runtime’s build.sh, and pip installs from the built wheel. Falls back to prebuilt wheel if available.
ONNX Runtime depends on ROCm.
§Validation Assertions
- VAL-INSTALL-010: ONNX Runtime correct cmake command
- VAL-INSTALL-011: ONNX Runtime pip install from build output
- VAL-INSTALL-014: Source builds parse build output for errors
- VAL-INSTALL-045: ONNX Runtime declares dependency on ROCm
Structs§
- Onnx
Runtime Config - Configuration for the ONNX Runtime installer.
- Onnx
Runtime Installer - The ONNX Runtime installer.
- Shell
Command - A constructed shell command.
Enums§
- HipArchs
- GPU architecture specification for HIP builds.
- Onnx
Install Method - ONNX Runtime install method.
Constants§
- DEFAULT_
ONNXRUNTIME_ VERSION - Current ROCm-compatible ONNX Runtime release: the source-build target and the version the bundled manifest proposes.
- ONNX_
INSTALL_ METHOD_ ENV - Env var selecting the ONNX install method
(
migraphx/source/prebuilt). Default:OnnxInstallMethod::MigraphxWheel. - ONNX_
VERSION_ ENV - Env var overriding the prebuilt
onnxruntime-migraphxversion (else the pinnedPREBUILT_MIGRAPHX_VERSIONis used). - PREBUILT_
MIGRAPHX_ VERSION - Pinned prebuilt
onnxruntime-migraphxwheel version installed from PyPI by the default (OnnxInstallMethod::MigraphxWheel) path — the primary, production-proven ROCm build that ships the MIGraphXExecutionProvider.
Functions§
- install_
method_ from_ env - Resolve the ONNX install method from
ONNX_INSTALL_METHOD_ENV. - prebuilt_
version_ from_ env - Resolve an overridden prebuilt version from
ONNX_VERSION_ENV, elseNone.