Install MIGraphX for ROCm
MIGraphX is AMD’s graph inference engine for optimizing and executing ONNX
models on AMD GPUs using ROCm. This page describes how to install MIGraphX
2.16.0.
MIGraphX is currently supported on gfx950 AMD Instinct MI355X and MI350X
data center GPUs and gfx942 MI325X and MI300X GPUs. See the ROCm
compatibility matrix
for more information.
Install MIGraphX on Linux
MIGraphX requires the ROCm Core SDK to be installed on your system first.
Install the ROCm Core SDK
For instructions, see Install AMD ROCm. Use the
selector panel on that page to view instructions appropriate for your system
environment.
Install MIGraphX 2.16.0 via package manager
This method installs MIGraphX system-wide via .deb or .rpm packages.
Download the packages.
Install the packages. Supported Debian-based Linux distributions are
Ubuntu and Debian. Supported RPM-based distributions are RHEL, Oracle Linux,
Rocky Linux, and SLES.
ONNX Runtime accelerates machine learning inference using the MIGraphX
execution provider on ROCm-supported GPUs. See the installation guidance.
Install MIGraphX 2.16.0 using pip
After installing ROCm, install MIGraphX. This method installs MIGraphX into
a Python virtual environment.
Create and activate a virtual environment or activate an existing ROCm 7.14.0 environment.
To create a new Python 3.12 virtual environment.
python3.12 -m venv .venv
source .venv/bin/activate
Download the wheel.
wget https://rocm.frameworks.amd.com/whl-multi-arch/migraphx/migraphx-2.16.0%2Brocm7.14.0-cp312-none-manylinux_2_28_x86_64.whl
Install the wheels and required packages.
python -m pip install migraphx-2.16.0+rocm7.14.0-cp312-none-manylinux_2_28_x86_64.whl
ONNX Runtime accelerates machine learning inference using the MIGraphX
execution provider on ROCm-supported GPUs. See the installation guidance.