fault tolerance bits

This commit is contained in:
edoapra 2023-08-31 12:21:55 -07:00
parent 240c68c5ec
commit a2cfea2a3a
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -220,9 +220,14 @@ if [[ "$os" == "Linux" ]]; then
if [[ "$FC" == "amdflang" ]]; then
$MYSUDO apt-get install -y wget gnupg2 coreutils dialog tzdata
rocm_version=5.4.3
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | $MYSUDO apt-key add -
tries=0 ; until [ "$tries" -ge 10 ] ; do \
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | $MYSUDO apt-key add - \
&& break ; \
tries=$((tries+1)) ; echo attempt no. $tries ; sleep 30 ; done
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/'$rocm_version'/ ubuntu main' | $MYSUDO tee /etc/apt/sources.list.d/rocm.list
$MYSUDO apt-get update -y && $MYSUDO apt-get -y install rocm-llvm openmp-extras
tries=0 ; until [ "$tries" -ge 10 ] ; do \
$MYSUDO apt-get update -y && $MYSUDO apt-get -y install rocm-llvm openmp-extras \
tries=$((tries+1)) ; echo attempt no. $tries ; sleep 30 ; done
export PATH=/opt/rocm/bin:$PATH
export LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/llvm/lib:$LD_LIBRARY_PATH
amdflang -v
@ -242,7 +247,10 @@ if [[ "$os" == "Linux" ]]; then
$MYSUDO cat /etc/apt/sources.list.d/nvhpc.list || true
$MYSUDO apt-get update -y
apt-cache search nvhpc
$MYSUDO apt-get install -y nvhpc-"$nverdash"
tries=0 ; until [ "$tries" -ge 10 ] ; do \
$MYSUDO apt-get install -y nvhpc-"$nverdash" \
&& break ; \
tries=$((tries+1)) ; echo attempt no. $tries ; sleep 30 ; done
export PATH=/opt/nvidia/hpc_sdk/Linux_"$arch"/"$nverdot"/compilers/bin:$PATH
export LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_"$arch"/"$nverdot"/compilers/lib:$LD_LIBRARY_PATH
$MYSUDO /opt/nvidia/hpc_sdk/Linux_"$arch"/"$nverdot"/compilers/bin/makelocalrc -x