Changeset 1484 for trunk


Ignore:
Timestamp:
06/17/19 11:01:17 (5 years ago)
Author:
jgipsl
Message:

Change submission at default host for case when launching only 1proc. Now done as at obelix in commit [1480].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r1459 r1484  
    116116#==================================================== 
    117117#- IN 
    118 typeset -r R_IN=${R_IN:=/home/${LOGIN}/IGCM} 
     118typeset -r R_IN=${R_IN:=/home_local/${LOGIN}/IGCM} 
    119119 
    120120#==================================================== 
    121121#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    122 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home/${LOGIN}/RUN_DIR/tmp$$} 
     122typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home_local/${LOGIN}/RUN_DIR/tmp$$} 
    123123 
    124124#==================================================== 
     
    167167    #==================================================== 
    168168    #- ARCHIVE (dedicated to large files) 
    169     ARCHIVE=${ARCHIVE:=/home/${LOGIN}} 
     169    ARCHIVE=${ARCHIVE:=/home_local/${LOGIN}} 
    170170  fi 
    171171 
     
    10171017          echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    10181018        fi 
    1019         if  ( ${OK_PARA_MPI} ) ; then 
     1019         
     1020        if [ ${mpiTasks} -eq 1 ] && [ ${openMPthreads} -eq 1 ] ; then 
     1021          # Case with only one proc 
     1022          # mpirun should not be used at obelix for only one proc 
     1023          # Output text per process 
     1024          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1025          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
     1026          EXECUTION="time ./script_${ExeNameOut}.ksh" 
     1027        elif  ( ${OK_PARA_MPI} ) ; then 
    10201028          # Default : mpirun used if nb_proc gt 1 
    1021           # pour sortie out/err par process 
     1029          # Output text per process 
    10221030          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1023           #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10241031          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10251032          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
    1026         else 
    1027           # Default : mpirun is NOT used if nb_proc eq 1 
    1028           # pour sortie out/err par process 
     1033        elif [ ${executionType} -eq 6 ] ; then 
     1034          # Sequentiel case: this is the same as the first case. 
    10291035          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1030           #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10311036          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10321037          EXECUTION="time ./script_${ExeNameOut}.ksh" 
     1038        else 
     1039          # Strange case.  
     1040          IGCM_debug_Exit "ERROR with OK_PARA_MPI" 
     1041          IGCM_debug_Print 2 "sys Obelix : OK_PARA_MPI=False and mpiTask/openMPthreds different from 1" 
     1042          IGCM_debug_Verif_Exit 
    10331043        fi 
     1044 
    10341045 
    10351046        IGCM_debug_Print 1 "sys $( hostname ) : script_${ExeNameOut}.ksh contains" 
Note: See TracChangeset for help on using the changeset viewer.