Expand description
MIGraphX Python bindings installer — ports scripts/install_migraphx_python.sh.
Installs the MIGraphX Python module via pip. Requires MIGraphX system package to be installed first.
§Arch Linux / CachyOS Handling
On Arch-family distros, the migraphx pip wheel is not available.
The installer should be skipped on these distros with a clear message
informing the user. Use is_available_on_distro() to check before
attempting installation.
§Validation Assertions
- VAL-INSTALL-030: MIGraphX Python correct pip command
Structs§
- Migraphx
Python Config - Configuration for the MIGraphX Python installer.
- Migraphx
Python Installer - The MIGraphX Python installer.
- Shell
Command - A constructed shell command.
Enums§
- Install
Method - Installation method.
Constants§
- AMDMIGRAPHX_
DEFAULT_ BRANCH - Default AMDMIGraphX branch (matches the Arch
migraphx 7.2.3package). - AMDMIGRAPHX_
REPO - Upstream source for the MIGraphX Python bindings.
- MIGRAPHX_
BUILD_ PYTHON_ ENV - Env var that opts into building the MIGraphX Python bindings from source
(AMDMIGraphX) — the only path on Arch/CachyOS, where no pip/system wheel
exists. Off by default (the C++ core + onnxruntime MIGraphX EP cover ONNX
inference). Values:
1/true/yes/on. - MIGRAPHX_
SOURCE_ BRANCH_ ENV - Optional env var overriding the AMDMIGraphX branch to build. The standalone
python bindings must match the installed C++ core, so the default tracks the
Arch
migraphxpackage line. - PACKAGE_
NAME - Package name for MIGraphX Python bindings.
Functions§
- build_
python_ source_ requested - Whether the user opted into building the Python bindings from source.
- source_
branch - The AMDMIGraphX branch to build: the
MLSTACK_MIGRAPHX_SOURCE_BRANCHenv override if set, elseAMDMIGRAPHX_DEFAULT_BRANCH.