Changeset 616 for trunk/setup.sh


Ignore:
Timestamp:
Apr 3, 2026, 2:32:27 PM (10 days ago)
Author:
htune
Message:

hangement de l'environnement (env.sh) pour belenos => passage à intel
+ gestion des librairies avec Rlibs_3.6.1.txt

En cours : Travail sur les codes setup_ARPCLIMAT.sh et serie_ARPCLIMAT.sh

Maelle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.sh

    r615 r616  
    151151    ;;
    152152    "beleno") cat > env.sh <<eod
    153 # this config uses software R and pdfjam installed by villefranquen
    154 # relevant paths are added to PATH and LD_LIBRARY_PATH
     153# Using intel compiler for belenos
     154# Just miss pdfjam
    155155set +u  # <module load> can trigger -u
    156156# module purge tries to unalias condam but the alias does not exist so it raises an error
    157157# so I create a false condam alias so that it can be unaliased...
    158158alias 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
     159module ()
     160{
     161    eval \`/usr/bin/modulecmd bash \$*\`
     162}
     163module purge > /dev/null 2>&1
     164module load intel > /dev/null 2>&1
     165module load nco > /dev/null 2>&1
     166module load eccodes > /dev/null 2>&1
     167module load cdo > /dev/null 2>&1
     168module load python/3.7.6 > /dev/null 2>&1
     169module load R/3.6.1 > /dev/null 2>&1
     170export PATH="/opt/softs/anaconda3/bin:\$PATH"
     171export LD_LIBRARY_PATH=/opt/softs/anaconda3/lib/:\$LD_LIBRARY_PATH
    166172export TAR=/usr/bin/tar  # for R package install
    167173eod
     
    238244  # Testing availability of various programs
    239245  #-----------------------------------------------------------------------
    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
    241249      if [[ $(which "$exe") = "" ]] ; then echo "STOP: Can't find program <$exe>" ; exit 1 ; fi
    242250  done
     
    316324      if [[ $ExeterUQ = "ExeterUQ_MOGP" ]]; then
    317325        # Install additional required packages
    318         pip install patsy matplotlib netcdf4 "pandas==2.3.1" seaborn
     326        pip install patsy matplotlib netcdf4 pandas seaborn
    319327        # Try pypi, otherwise git commit
    320328        if ! pip install "mogp-emulator==$mogp_commit"; then
     
    353361          #                This is particularly a pain when we want to support machines with different versions of R installed.
    354362          #                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 reticulate 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
     363          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
    356364            echo "STOP: Problem encountered when installing R packages"; exit 1
    357365          fi
Note: See TracChangeset for help on using the changeset viewer.