Skip to content

Commit 98c9bd8

Browse files
BLOrange-AMDjeffdaily
authored andcommitted
Update magma commit for ROCm6.0
1 parent 139d794 commit 98c9bd8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.ci/docker/common/install_rocm_magma.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
#!/bin/bash
22

3+
ver() {
4+
printf "%3d%03d%03d%03d" $(echo "$1" | tr '.' ' ');
5+
}
6+
37
set -ex
48

59
# "install" hipMAGMA into /opt/rocm/magma by copying after build
6-
git clone https://bitbucket.org/icl/magma.git
7-
pushd magma
8-
# Fixes memory leaks of magma found while executing linalg UTs
9-
git checkout 28592a7170e4b3707ed92644bf4a689ed600c27f
10+
if [[ $(ver $ROCM_VERSION) -ge $(ver 6.0) ]]; then
11+
# rocm6.0 changes on top of 28592a7170e4b3707ed92644bf4a689ed600c27f
12+
git clone https://bitbucket.org/mpruthvi1/magma.git -b rocm_60
13+
pushd magma
14+
else
15+
git clone https://bitbucket.org/icl/magma.git
16+
pushd magma
17+
git checkout 28592a7170e4b3707ed92644bf4a689ed600c27f
18+
fi
19+
1020
cp make.inc-examples/make.inc.hip-gcc-mkl make.inc
1121
echo 'LIBDIR += -L$(MKLROOT)/lib' >> make.inc
1222
echo 'LIB += -Wl,--enable-new-dtags -Wl,--rpath,/opt/rocm/lib -Wl,--rpath,$(MKLROOT)/lib -Wl,--rpath,/opt/rocm/magma/lib' >> make.inc

0 commit comments

Comments
 (0)