Skip to main content

Module migraphx_python

Module migraphx_python 

Source
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§

MigraphxPythonConfig
Configuration for the MIGraphX Python installer.
MigraphxPythonInstaller
The MIGraphX Python installer.
ShellCommand
A constructed shell command.

Enums§

InstallMethod
Installation method.

Constants§

AMDMIGRAPHX_DEFAULT_BRANCH
Default AMDMIGraphX branch (matches the Arch migraphx 7.2.3 package).
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 migraphx package 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_BRANCH env override if set, else AMDMIGRAPHX_DEFAULT_BRANCH.