Changeset 616 for trunk/setup.sh
- Timestamp:
- Apr 3, 2026, 2:32:27 PM (10 days ago)
- File:
-
- 1 edited
-
trunk/setup.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup.sh
r615 r616 151 151 ;; 152 152 "beleno") cat > env.sh <<eod 153 # this config uses software R and pdfjam installed by villefranquen154 # relevant paths are added to PATH and LD_LIBRARY_PATH153 # Using intel compiler for belenos 154 # Just miss pdfjam 155 155 set +u # <module load> can trigger -u 156 156 # module purge tries to unalias condam but the alias does not exist so it raises an error 157 157 # so I create a false condam alias so that it can be unaliased... 158 158 alias condam="ls" 159 module purge 160 module load gcc/14.1.0 161 module load openmpi/gnu/4.1.2.1 162 module load python/3.10.12 163 export PATH=/opt/softs/libraries/GCC_5.3.0/cdo-1.7.0/bin/:\$PATH 164 export LD_LIBRARY_PATH=/opt/softs/gcc/14.1.0/lib64/:/opt/softs/anaconda3/envs/Python310/lib:\$LD_LIBRARY_PATH 165 export MPLBACKEND='Agg' # non-interactive plots 159 module () 160 { 161 eval \`/usr/bin/modulecmd bash \$*\` 162 } 163 module purge > /dev/null 2>&1 164 module load intel > /dev/null 2>&1 165 module load nco > /dev/null 2>&1 166 module load eccodes > /dev/null 2>&1 167 module load cdo > /dev/null 2>&1 168 module load python/3.7.6 > /dev/null 2>&1 169 module load R/3.6.1 > /dev/null 2>&1 170 export PATH="/opt/softs/anaconda3/bin:\$PATH" 171 export LD_LIBRARY_PATH=/opt/softs/anaconda3/lib/:\$LD_LIBRARY_PATH 166 172 export TAR=/usr/bin/tar # for R package install 167 173 eod … … 238 244 # Testing availability of various programs 239 245 #----------------------------------------------------------------------- 240 for exe in R Rscript cdo ncks $python pdfjam ; do 246 if [[ ${hostname:0:6} = "beleno" ]] ; then listprog="R Rscript cdo ncks $python" ; else listprog="R Rscript cdo ncks $python" pdfjam ;fi 247 #for exe in R Rscript cdo ncks $python pdfjam ; do 248 for exe in $listprog ; do 241 249 if [[ $(which "$exe") = "" ]] ; then echo "STOP: Can't find program <$exe>" ; exit 1 ; fi 242 250 done … … 316 324 if [[ $ExeterUQ = "ExeterUQ_MOGP" ]]; then 317 325 # Install additional required packages 318 pip install patsy matplotlib netcdf4 "pandas==2.3.1"seaborn326 pip install patsy matplotlib netcdf4 pandas seaborn 319 327 # Try pypi, otherwise git commit 320 328 if ! pip install "mogp-emulator==$mogp_commit"; then … … 353 361 # This is particularly a pain when we want to support machines with different versions of R installed. 354 362 # The list and order of packages below is an attempt to circumvent that, but I hope we can find a cleaner way in the future.... 355 if ! eval "$htune_dir/src/CheckInstallPackages.sh" Rcpp lattice Matrix reticulateinvgamma GenSA far dotCall64 spam fields lhs maps mco ncdf4 shape tensor withr loo MASS pracma mvtnorm flexclust tmvtnorm tictoc ars HI coda MfUSampler ; then363 if ! eval "$htune_dir/src/CheckInstallPackages.sh" Rcpp lattice reticulate Matrix invgamma GenSA far dotCall64 spam fields lhs maps mco ncdf4 shape tensor withr loo MASS pracma mvtnorm flexclust tmvtnorm tictoc ars HI coda MfUSampler ; then 356 364 echo "STOP: Problem encountered when installing R packages"; exit 1 357 365 fi
Note: See TracChangeset
for help on using the changeset viewer.
