Building MIGraphX

Building MIGraphX#

2024-10-01

2 min read time

Applies to Linux

ROCm must be installed prior to building MIGraphX. See ROCm installation for Linux for information on ROCm installation on Linux.

Note

This method for building MIGraphX requires using sudo.

  1. Install rocm-cmake, pip3, rocblas, and miopen-hip:

    sudo apt install -y rocm-cmake python3-pip rocblas miopen-hip
    
  2. Install rbuild:

    pip3 install --prefix /usr/local https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz
    
  3. Build MIGraphX source code:

    sudo rbuild build -d depend -B build -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*')