Skip to content

Commit

Permalink
Merge "[run_rocm_test] - Add Azure Linux support (#1146)" into releas…
Browse files Browse the repository at this point in the history
…e/rocm-rel-6.3
  • Loading branch information
rocm-devops authored and Gerrit Code Review committed Nov 13, 2024
2 parents fc7b7fe + c2cd113 commit 48e22df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/run_rocm_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ if [ "$aomp" != 1 ]; then
test_package=$(ls -lt /var/cache/zypp/packages/rocm/ | grep -Eo -m1 openmp-extras-tests.*)
cp /var/cache/zypp/packages/rocm/"$test_package" $tmpdir
extract_rpm $test_package
elif [[ "$os_name" =~ "Microsoft Azure Linux" ]]; then
dnf download --destdir=$tmpdir openmp-extras-tests
test_package=$(ls -lt $tmpdir | grep -Eo -m1 openmp-extras-tests.*)
extract_rpm $test_package
else
echo "Error: Could not determine operating system name."
exit 1
Expand Down Expand Up @@ -321,10 +325,10 @@ function getversion(){
osname=$(cat /etc/os-release | grep -e ^NAME=)
# Regex to cover single/multi version installs for deb/rpm.
ompextrasregex="openmp-extras-?[a-z]*-?\s*[0-9]+\.([0-9]+)\.([0-9]+)"
rpmregex="Red Hat|CentOS|SLES|Oracle Linux Server"
rpmregex="Red Hat|CentOS|SLES|Oracle Linux Server|Microsoft Azure Linux"
echo $osname
if [[ "$osname" =~ $rpmregex ]]; then
echo "Red Hat/CentOS/SLES/Oracle found"
echo "Red Hat/CentOS/SLES/Oracle/Microsoft Azure found"
ompextraspkg=$(rpm -qa | grep openmp-extras | tail -1)
elif [[ $osname =~ "Ubuntu" ]]; then
echo "Ubuntu found"
Expand Down

0 comments on commit 48e22df

Please sign in to comment.