Building MIGraphX

Building MIGraphX#

Applies to Linux

2024-10-16

2 min read time

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.*')