Changeset 5462
- Timestamp:
- Dec 31, 2024, 5:52:32 PM (5 days ago)
- Location:
- BOL/LMDZ_Setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup/lmdz_env.sh
r5438 r5462 9 9 10 10 # <root_dir> will be set by sed by setup.sh here 11 root_dir=/ home/hourdin/TMP/TestI11 root_dir=/data/hourdin/TESTS/SPLA 12 12 pub_store=1 13 PARALLEL=1 13 14 14 15 function get_hostname { … … 129 130 *) # Local machine. 130 131 #------------------------------------------------------------------------- 131 ARCH="local-gfortran-parallel" # The arch file to use132 132 SIMRUNBASEDIR="$root_dir/SCRATCH/" # Where the simulations will be executed ($SIMRUNBASEDIR/LMDZ_Setup/...) 133 133 LMDZD="$root_dir/../LMDZD" # Where the sources will be downloaded and compiled 134 134 if [[ $pub_store ]] ; then LMDZ_INIT="$HOME/LMDZ/pub" ; else LMDZ_INIT="$root_dir/LMDZ/pub" ; fi 135 NB_MPI_MAX=2 # Max number of MPI cores (only for running simulations) 136 NB_OMP_MAX=2 # Max number of OMP threads (only for running simulations) 135 # Old fortran versions 136 if [ $( gfortran --version | head -1 | awk ' { print $NF } ' | cut -d. -f1 ) -le 9 ] ; then 137 gfortranv=gfortran9 ; archdir="-arch_dir arch" 138 if [ ! -d $LMDZD/arch ] ; then mkdir -p $LMDZD ; cd $LMDZD ; 139 wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/LMDZ/arch-local-gfortran9.tar 140 tar xvf arch-local-gfortran9.tar 141 cd - 142 fi 143 else 144 gfortranv=gfortran ; archdir= 145 fi 146 if [[ $PARALLEL = 0 ]] ; then 147 ARCH="local-${gfortranv} $archdir" # The arch file to use 148 NB_MPI_MAX=1 # Max number of MPI cores (only for running simulations) 149 NB_OMP_MAX=1 # Max number of OMP threads (only for running simulations) 150 MPICMD="" # command to run an mpi executable, as $MPICMD <nprocs> <script> 151 else 152 ARCH="local-${gfortranv}-parallel $archdir" # The arch file to use 153 NB_MPI_MAX=2 # Max number of MPI cores (only for running simulations) 154 NB_OMP_MAX=2 # Max number of OMP threads (only for running simulations) 155 MPICMD="mpirun -np" # command to run an mpi executable, as $MPICMD <nprocs> <script> 156 fi 157 137 158 NB_CORE_PER_NODE_MAX=0 # Max number of cores per node (real cores, not hyperthreading - only for running simulations, cluster-specific) 138 159 N_HYPERTHREADING=1 # How many hyperthreading threads per physical core 139 MPICMD="mpirun -np" # command to run an mpi executable, as $MPICMD <nprocs> <script>140 160 RUNBASHCMD="bash" # command to run a bash job, as $runbashcmd (nthreads) <script> [nthreads only supplied if =/="bash"] 141 161 #SUBMITCMD="." # command to sumbit a job, as $submitcmd <script> -
BOL/LMDZ_Setup/setup.sh
r5439 r5462 276 276 jobcmd="bash" 277 277 fi 278 echo "./install_lmdz.sh -noclean $optim -v $version $svnopt -d $resol -rad $rad -bench 0 -parallel mpi_omp $ins_cosp $ins_xios $ins_aero $ins_inlandsis -name $LMDZname -veget $veget -netcdf $netcdf -arch $ARCH -make_j $make_j -jobcmd $jobcmd" >> install_lmdz_options.$$.sh 278 if [[ $PARALLEL == 0 ]] ; then parallel= ; else parallel="-parallel mpi_omp" ; fi 279 echo "./install_lmdz.sh -noclean $optim -v $version $svnopt -d $resol -rad $rad -bench 0 $parallel $ins_cosp $ins_xios $ins_aero $ins_inlandsis -name $LMDZname -veget $veget -netcdf $netcdf -arch $ARCH -make_j $make_j -jobcmd $jobcmd" >> install_lmdz_options.$$.sh 279 280 chmod +x install_lmdz_options.$$.sh 280 281 echo "Running install_lmdz_options.$$.sh"
Note: See TracChangeset
for help on using the changeset viewer.