Skip to content

Commit a9d0da9

Browse files
[release/2.7] Move to magma public github repo (#2195)
- Changed to support new Hipblas 3.0.0 which is part of ROCm 7.0 is done. CP of ec0c539 Co-authored-by: Pruthvi Madugundu <[email protected]>
1 parent 38f2b26 commit a9d0da9

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.ci/docker/common/install_rocm_magma.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
set -ex
55

6+
ver() {
7+
printf "%3d%03d%03d%03d" $(echo "$1" | tr '.' ' ');
8+
}
9+
610
# Magma build scripts need `python`
711
ln -sf /usr/bin/python3 /usr/bin/python
812

@@ -19,11 +23,17 @@ esac
1923
MKLROOT=${MKLROOT:-/opt/conda/envs/py_$ANACONDA_PYTHON_VERSION}
2024

2125
# "install" hipMAGMA into /opt/rocm/magma by copying after build
22-
git clone https://bitbucket.org/icl/magma.git
23-
pushd magma
24-
25-
# Version 2.7.2 + ROCm related updates
26-
git checkout a1625ff4d9bc362906bd01f805dbbe12612953f6
26+
if [[ $(ver $ROCM_VERSION) -ge $(ver 7.0) ]]; then
27+
git clone https://github.com/ROCm/utk-magma.git -b release/2.9.0_rocm70 magma
28+
pushd magma
29+
# version 2.9 + ROCm 7.0 related updates
30+
git checkout 91c4f720a17e842b364e9de41edeef76995eb9ad
31+
else
32+
git clone https://bitbucket.org/icl/magma.git
33+
pushd magma
34+
# Version 2.7.2 + ROCm related updates
35+
git checkout a1625ff4d9bc362906bd01f805dbbe12612953f6
36+
fi
2737

2838
cp make.inc-examples/make.inc.hip-gcc-mkl make.inc
2939
echo 'LIBDIR += -L$(MKLROOT)/lib' >> make.inc

0 commit comments

Comments
 (0)