Changeset 1492


Ignore:
Timestamp:
10/18/19 17:29:44 (5 years ago)
Author:
jgipsl
Message:

Treated case MPMD MPI only (executaionType=1) at jeanzay. Note mpivars.h currently needed for this case is sourced from main job for all cases at jeanzay.

Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r1490 r1492  
    5050#-Q- jeanzay #SBATCH --output=Script_Output_::Jobname::.000001    # standard output 
    5151#-Q- jeanzay #SBATCH --error=Script_Output_::Jobname::.000001    # error output 
    52 #-Q- jeanzay ####SBATCH -eo 
    5352#-Q- jeanzay #SBATCH --ntasks=::JobNumProcTot::   # Number of MPI tasks 
    5453#-Q- jeanzay #SBATCH --cpus-per-task=::openMPthreads::  # Number of openMP threads. 
     
    487486  IGCM_debug_Verif_Exit 
    488487 
     488#-Q- jeanzay # Workaround at Jean-Zay 
     489#-Q- jeanzay source $I_MPI_ROOT/intel64/bin/mpivars.sh release_mt 
     490 
    489491  #D- 
    490492  #D---------------------------------------------------------------------== 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_jeanzay.ksh

    r1490 r1492  
    157157#==================================================== 
    158158#- HOST_MPIRUN_COMMAND 
    159 typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time srun --mpi=pmi2 "} 
     159typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time srun "} 
    160160 
    161161#==================================================== 
     
    178178#- Number of computing cores per node  
    179179#- 
    180 NB_CORE_PER_NODE=48 
     180NB_CORE_PER_NODE=40 
    181181 
    182182#D-#================================================== 
     
    12371237    # case 1 : Only MPI (MPMD) 
    12381238    if  ( ! ${OK_PARA_OMP} ) ; then 
    1239  
    12401239      # Build run_file 
    1241  
     1240      current_core=0 
    12421241      # First loop on the components for the coupler ie oasis (only if oasis3) 
    12431242      # the coupler ie oasis3 must be the first one 
     
    12471246        eval ExeNameOut=\${config_Executable_${comp}[1]} 
    12481247 
    1249         # for CPL component only 
    1250         if [ "X${comp}" = "XCPL" ] && [ "X${ExeNameOut}" != X\"\" ] ; then 
     1248        # Only if the component has an executable 
     1249        if ( [ "X${ExeNameOut}" != X\"\" ] ) ; then 
    12511250 
    12521251          eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 
    1253           eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 
    1254           echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 
     1252          (( end_core = ${current_core} + ${comp_proc_mpi_loc} - 1 )) 
     1253          echo "${current_core}-${end_core} ./${ExeNameOut}" >> run_file 
     1254          (( current_core = ${end_core} + 1 )) 
    12551255        fi 
    12561256      done 
    12571257 
    1258       # Then second loop on the components 
    1259       for comp in ${config_ListOfComponents[*]} ; do 
    1260  
    1261         eval ExeNameIn=\${config_Executable_${comp}[0]} 
    1262         eval ExeNameOut=\${config_Executable_${comp}[1]} 
    1263  
    1264         # Only if we really have an executable for the component and not the coupler ie oasis: 
    1265         if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 
    1266  
    1267           eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 
    1268           eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 
    1269           echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 
    1270         fi 
    1271       done 
    1272  
    1273       EXECUTION="${HOST_MPIRUN_COMMAND} -f ./run_file" 
     1258      EXECUTION="${HOST_MPIRUN_COMMAND} --multi-prog ./run_file" 
    12741259 
    12751260      IGCM_sys_Chmod u+x run_file 
Note: See TracChangeset for help on using the changeset viewer.