install_prereqs.sh 669 Bytes
Newer Older
Shucai Xiao's avatar
Shucai Xiao committed
1
2
3
4
#!/bin/bash
#
# Build MIGraphX prerequisites for docker container

5
6
#install pip3, rocm-cmake, rocblas and miopen
apt update && apt install -y python3-pip rocm-cmake rocblas miopen-hip openmp-extras
Shucai Xiao's avatar
Shucai Xiao committed
7
8
9
10
11
12
13
14

# install rbuild to build dependencies
pip3 install https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz

PREFIX=/usr/local
REQ_FILE_DIR=""
if [ "$#" -ge 2 ]; then
  PREFIX=$1
15
  cd $2
Shucai Xiao's avatar
Shucai Xiao committed
16
17
18
19
20
21
elif [ "$#" -eq 1 ]; then
  PREFIX=$1
fi

echo "Dependencies are install at $PREFIX"

22
23
# Install deps with rbuild
rbuild prepare -d $PREFIX -s develop
Shucai Xiao's avatar
Shucai Xiao committed
24

Shucai Xiao's avatar
Shucai Xiao committed
25
26
# install onnx package for unit tests
pip3 install onnx==1.8.1 numpy==1.18.5 typing==3.7.4 pytest==6.0.1 packaging==16.8
Shucai Xiao's avatar
Shucai Xiao committed
27