-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update HPC-X 2.7.2 - Update OpenMPI 4.0.5 - Update waagent configuration - Update GPU drivers - Update AMD library versions
- Loading branch information
1 parent
adf9eae
commit 3686c7b
Showing
24 changed files
with
251 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
../../common/install_amd_libs.sh | ||
|
||
$COMMON_DIR/../centos/centos-7.x/common/install_amd_libs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
MLNX_OFED_DOWNLOAD_URL=http://content.mellanox.com/ofed/MLNX_OFED-5.1-0.6.6.0/MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.6-x86_64.tgz | ||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "a6366c43a51dc4e43e672c5c72ed732506f7aa68790103fbc40286a7a39623aa" | ||
tar zxvf MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.6-x86_64.tgz | ||
MLNX_OFED_DOWNLOAD_URL=https://azhpcstor.blob.core.windows.net/azhpc-images-store/MLNX_OFED_LINUX-5.1-2.4.6.0-rhel7.6-x86_64.tgz | ||
TARBALL=$(basename ${MLNX_OFED_DOWNLOAD_URL}) | ||
MOFED_FOLDER=$(basename ${MLNX_OFED_DOWNLOAD_URL} .tgz) | ||
|
||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "6966b086332f65b76efa41f5604588ba43321f09b634b6c59104423406f11f1e" | ||
tar zxvf ${TARBALL} | ||
|
||
KERNEL=( $(rpm -q kernel | sed 's/kernel\-//g') ) | ||
KERNEL=${KERNEL[-1]} | ||
# Uncomment the lines below if you are running this on a VM | ||
#RELEASE=( $(cat /etc/centos-release | awk '{print $4}') ) | ||
#yum -y install http://olcentgbl.trafficmanager.net/centos/${RELEASE}/updates/x86_64/kernel-devel-${KERNEL}.rpm | ||
yum install -y kernel-devel-${KERNEL} | ||
./MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.6-x86_64/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo | ||
./${MOFED_FOLDER}/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
../../common/install_amd_libs.sh | ||
|
||
$COMMON_DIR/../centos/centos-7.x/common/install_amd_libs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
MLNX_OFED_DOWNLOAD_URL=http://content.mellanox.com/ofed/MLNX_OFED-5.1-0.6.6.0/MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.7-x86_64.tgz | ||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "22ef65aa07ba4d5e2af57465053440fad18a71528e3040d94b4fec5a38803fe8" | ||
tar zxvf MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.7-x86_64.tgz | ||
MLNX_OFED_DOWNLOAD_URL=https://azhpcstor.blob.core.windows.net/azhpc-images-store/MLNX_OFED_LINUX-5.1-2.4.6.0-rhel7.7-x86_64.tgz | ||
TARBALL=$(basename ${MLNX_OFED_DOWNLOAD_URL}) | ||
MOFED_FOLDER=$(basename ${MLNX_OFED_DOWNLOAD_URL} .tgz) | ||
|
||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "777fe2be20f4ea7fc2e665f490a8371957b2ac3877cc72019d2e09448dc775f1" | ||
tar zxvf ${TARBALL} | ||
|
||
KERNEL=( $(rpm -q kernel | sed 's/kernel\-//g') ) | ||
KERNEL=${KERNEL[-1]} | ||
# Uncomment the lines below if you are running this on a VM | ||
#RELEASE=( $(cat /etc/centos-release | awk '{print $4}') ) | ||
#yum -y install http://olcentgbl.trafficmanager.net/centos/${RELEASE}/updates/x86_64/kernel-devel-${KERNEL}.rpm | ||
yum install -y kernel-devel-${KERNEL} | ||
./MLNX_OFED_LINUX-5.1-0.6.6.0-rhel7.7-x86_64/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo | ||
./${MOFED_FOLDER}/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
../../common/install_amd_libs.sh | ||
|
||
$COMMON_DIR/../centos/centos-7.x/common/install_amd_libs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
INSTALL_PREFIX=/opt/amd | ||
mkdir -p ${INSTALL_PREFIX} | ||
|
||
AOCL_VERSION="2.2-4" | ||
AOCL_DOWNLOAD_URL="https://azhpcstor.blob.core.windows.net/azhpc-images-store/aocl-linux-aocc-2.2-4_centos7.tar.gz" | ||
$COMMON_DIR/download_and_verify.sh $AOCL_DOWNLOAD_URL "4bdc5caec0233066ded3e2bfedb1e03bdeec82725361764d8860075f64ff4031" | ||
|
||
TARBALL=$(basename ${AOCL_DOWNLOAD_URL}) | ||
tar -xvf ${TARBALL} | ||
cd aocl-linux-aocc-${AOCL_VERSION} | ||
|
||
./install.sh -t amd -l blis fftw libflame | ||
cp -r amd/2.2/* ${INSTALL_PREFIX} | ||
cd .. && rm -rf aocl-linux-aocc-${AOCL_VERSION} | ||
|
||
# Setup module files for AMD Libraries | ||
mkdir -p /usr/share/Modules/modulefiles/amd/ | ||
|
||
# fftw | ||
cat << EOF >> /usr/share/Modules/modulefiles/amd/aocl-${AOCL_VERSION} | ||
#%Module 1.0 | ||
# | ||
# AOCL | ||
# | ||
prepend-path LD_LIBRARY_PATH ${INSTALL_PREFIX}/lib | ||
setenv AMD_FFTW_INCLUDE ${INSTALL_PREFIX}/include | ||
EOF | ||
|
||
# Create symlinks for modulefiles | ||
ln -s /usr/share/Modules/modulefiles/amd/aocl-${AOCL_VERSION} /usr/share/Modules/modulefiles/amd/aocl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
../../common/install_amd_libs.sh | ||
|
||
$COMMON_DIR/../centos/centos-8.x/common/install_amd_libs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
MLNX_OFED_DOWNLOAD_URL=http://content.mellanox.com/ofed/MLNX_OFED-5.1-0.6.6.0/MLNX_OFED_LINUX-5.1-0.6.6.0-rhel8.1-x86_64.tgz | ||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "9d5ca5a32270c0c577582abab7c5f441b439c9b69229b2c2e91fdee6be018f61" | ||
tar zxvf MLNX_OFED_LINUX-5.1-0.6.6.0-rhel8.1-x86_64.tgz | ||
MLNX_OFED_DOWNLOAD_URL=https://azhpcstor.blob.core.windows.net/azhpc-images-store/MLNX_OFED_LINUX-5.1-2.4.6.0-rhel8.1-x86_64.tgz | ||
TARBALL=$(basename ${MLNX_OFED_DOWNLOAD_URL}) | ||
MOFED_FOLDER=$(basename ${MLNX_OFED_DOWNLOAD_URL} .tgz) | ||
|
||
$COMMON_DIR/download_and_verify.sh $MLNX_OFED_DOWNLOAD_URL "7a92e363f5a6aeb9cd6c2290c0ca1dc7334003dd614faa782d164057742b118e" | ||
tar zxvf ${TARBALL} | ||
|
||
KERNEL=( $(rpm -q kernel | sed 's/kernel\-//g') ) | ||
KERNEL=${KERNEL[-1]} | ||
# Uncomment the lines below if you are running this on a VM | ||
#RELEASE=( $(cat /etc/centos-release | awk '{print $4}') ) | ||
#yum install -y http://olcentwus.cloudapp.net/centos/${RELEASE}/BaseOS/x86_64/os/kernel-devel-${KERNEL}.rpm | ||
yum install -y kernel-devel-${KERNEL} | ||
./MLNX_OFED_LINUX-5.1-0.6.6.0-rhel8.1-x86_64/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo | ||
./${MOFED_FOLDER}/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
INSTALL_PREFIX=/opt/amd | ||
mkdir -p ${INSTALL_PREFIX} | ||
|
||
AOCL_VERSION="2.2.1" | ||
AOCL_DOWNLOAD_URL="https://azhpcstor.blob.core.windows.net/azhpc-images-store/aocl-linux-aocc-2.2.1_centos8.tar.gz" | ||
$COMMON_DIR/download_and_verify.sh $AOCL_DOWNLOAD_URL "cbe5afbdc241047a9d8814b5557be429aa0d9d2b83408eca8244e1ab9c8e2c87" | ||
|
||
TARBALL=$(basename ${AOCL_DOWNLOAD_URL}) | ||
tar -xvf ${TARBALL} | ||
cd aocl-linux-aocc-${AOCL_VERSION}_centos8 | ||
|
||
./install.sh -t amd -l blis fftw libflame | ||
cp -r amd/${AOCL_VERSION}_centos8/* ${INSTALL_PREFIX} | ||
cd .. && rm -rf aocl-linux-aocc-${AOCL_VERSION}_centos8 | ||
|
||
# Setup module files for AMD Libraries | ||
mkdir -p /usr/share/Modules/modulefiles/amd/ | ||
|
||
# fftw | ||
cat << EOF >> /usr/share/Modules/modulefiles/amd/aocl-${AOCL_VERSION} | ||
#%Module 1.0 | ||
# | ||
# AOCL | ||
# | ||
prepend-path LD_LIBRARY_PATH ${INSTALL_PREFIX}/lib | ||
setenv AMD_FFTW_INCLUDE ${INSTALL_PREFIX}/include | ||
EOF | ||
|
||
# Create symlinks for modulefiles | ||
ln -s /usr/share/Modules/modulefiles/amd/aocl-${AOCL_VERSION} /usr/share/Modules/modulefiles/amd/aocl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.