File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 33
44set -ex
55
6+ ver () {
7+ printf " %3d%03d%03d%03d" $( echo " $1 " | tr ' .' ' ' ) ;
8+ }
9+
610# Magma build scripts need `python`
711ln -sf /usr/bin/python3 /usr/bin/python
812
1923MKLROOT=${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
2838cp make.inc-examples/make.inc.hip-gcc-mkl make.inc
2939echo ' LIBDIR += -L$(MKLROOT)/lib' >> make.inc
You can’t perform that action at this time.
0 commit comments