Changeset 1480 for trunk


Ignore:
Timestamp:
03/26/19 12:01:45 (5 years ago)
Author:
jgipsl
Message:

Change submission at obelix: when launching only 1proc, mpirun must not be set. While using mpirun for only 1proc, the execution will always force to use cpu0 on the node. The issue has been investigated with F. Marabelle but it is still not clear why it is not working correctly. It might be an issue with the version of mpirun.

Following settings in config.card are now treated as the same at obelix:
OOL= (orchidee_ol, orchidee_ol, 1MPI)
OOL= (orchidee_ol, orchidee_ol)

File:
1 edited

Legend:

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

    r1469 r1480  
    10391039          echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    10401040        fi 
    1041         if  ( ${OK_PARA_MPI} ) ; then 
     1041 
     1042        if [ ${mpiTasks} -eq 1 ] && [ ${openMPthreads} -eq 1 ] ; then 
     1043          # Case with only one proc 
     1044          # mpirun should not be used at obelix for only one proc 
     1045          # Output text per process 
     1046          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1047          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
     1048          EXECUTION="time ./script_${ExeNameOut}.ksh" 
     1049        elif  ( ${OK_PARA_MPI} ) ; then 
    10421050          # Default : mpirun used if nb_proc gt 1 
    1043           # pour sortie out/err par process 
     1051          # Output text per process 
    10441052          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1045           #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10461053          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10471054          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
    10481055        else 
    1049           # Default : mpirun is NOT used if nb_proc eq 1 
    1050           # pour sortie out/err par process 
    1051           echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1052           #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    1053           IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    1054           EXECUTION="time ./script_${ExeNameOut}.ksh" 
     1056          # Strange case.  
     1057          IGCM_debug_Exit "ERROR with OK_PARA_MPI" 
     1058          IGCM_debug_Print 2 "sys Obelix : OK_PARA_MPI=False and mpiTask/openMPthreds different from 1" 
     1059          IGCM_debug_Verif_Exit 
    10551060        fi 
    10561061 
Note: See TracChangeset for help on using the changeset viewer.