mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
fault tolerance bits
This commit is contained in:
parent
240c68c5ec
commit
a2cfea2a3a
1 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue