Skip to content

Commit

Permalink
Support for CentOS/RHEL 9 (#548)
Browse files Browse the repository at this point in the history
Build dependencies for CentOS/RHEL 9 (same as 8) instead of defaulting to using the dependencies for 7.
  • Loading branch information
schung-amd authored Dec 5, 2024
1 parent 6b6bee4 commit b1e2366
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ install_packages( )
local library_dependencies_centos_6=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_centos_7=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_centos_8=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_centos_9=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_fedora=( "make" "cmake" "gcc-c++" "libcxx-devel" "rpm-build" "numactl-libs" )
local library_dependencies_sles=( "make" "cmake" "gcc-c++" "rpm-build" "pkg-config" "dpkg" )

local client_dependencies_centos_6=( "gcc-gfortran" )
local client_dependencies_centos_7=( "devtoolset-7-gcc-gfortran" )
local client_dependencies_centos_8=( "gcc-gfortran" )
local client_dependencies_centos_9=( "gcc-gfortran" )
local client_dependencies_fedora=( "gcc-gfortran" )
local client_dependencies_sles=( "gcc-fortran" )

Expand All @@ -153,6 +155,7 @@ install_packages( )
else
library_dependencies_centos_7+=( "numactl-libs" )
library_dependencies_centos_8+=( "numactl-libs" )
library_dependencies_centos_9+=( "numactl-libs" )
fi
fi

Expand All @@ -179,7 +182,13 @@ install_packages( )
# yum -y update brings *all* installed packages up to date
# without seeking user approval
# elevate_if_not_root yum -y update
if [[ "${MAJORVERSION}" == 8 ]]; then
if [[ "${MAJORVERSION}" == 9 ]]; then
install_yum_packages "${library_dependencies_centos_9[@]}"

if [[ "${build_clients}" == true ]]; then
install_yum_packages "${client_dependencies_centos_9[@]}"
fi
elif [[ "${MAJORVERSION}" == 8 ]]; then
install_yum_packages "${library_dependencies_centos_8[@]}"

if [[ "${build_clients}" == true ]]; then
Expand Down

0 comments on commit b1e2366

Please sign in to comment.