Changeset 1317 for trunk/libIGCM


Ignore:
Timestamp:
04/13/16 22:37:09 (8 years ago)
Author:
sdipsl
Message:
  • Manage standard and error outputs from several cores and several components. See #166
Location:
trunk/libIGCM/libIGCM_sys
Files:
4 edited

Legend:

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

    r1314 r1317  
    10111011            echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    10121012          fi 
    1013           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    1014           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    1015           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1013          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     1014          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     1015          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10161016          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10171017 
     
    10731073          # Default : mpirun used if nb_proc gt 1 
    10741074          # pour sortie out/err par process 
    1075           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1076           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1075          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
     1076          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10771077          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10781078          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
     
    10801080          # Default : mpirun is NOT used if nb_proc eq 1 
    10811081          # pour sortie out/err par process 
    1082           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1083           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1082          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1083          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10841084          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10851085          EXECUTION="time ./script_${ExeNameOut}.ksh" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r1315 r1317  
    13061306            echo "OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    13071307          fi 
    1308           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    1309           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    1310           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1308          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     1309          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     1310          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    13111311          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    13121312 
     
    13771377          # Default : ccc_mprun used if nb_proc gt 1 
    13781378          # to have out/err per process on different files 
    1379           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${SLURM_PROCID} 2>out_${ExeNameOut}.err.\${SLURM_PROCID}"  >> script_${ExeNameOut}.ksh 
    1380           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1379          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${SLURM_PROCID} 2>out_${ExeNameOut}.err.\${SLURM_PROCID}"  >> script_${ExeNameOut}.ksh 
     1380          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    13811381          EXECUTION="${HOST_MPIRUN_COMMAND} -n ${comp_proc_mpi_loc} ./script_${ExeNameOut}.ksh" 
    13821382        else 
    13831383          # Default : ccc_mprun is NOT used if nb_proc eq 1 
    13841384          # to have out/err per process on different files 
    1385           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1386           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1385          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1386          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    13871387          EXECUTION="/usr/bin/time ./script_${ExeNameOut}.ksh" 
    13881388        fi 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r1300 r1317  
    953953            echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    954954          fi 
    955           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    956           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    957           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     955          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     956          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     957          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    958958          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    959959 
     
    10151015          # Default : mpirun used if nb_proc gt 1 
    10161016          # pour sortie out/err par process 
    1017           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1018           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1017          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
     1018          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10191019          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10201020          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
     
    10221022          # Default : mpirun is NOT used if nb_proc eq 1 
    10231023          # pour sortie out/err par process 
    1024           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1025           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1024          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1025          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10261026          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10271027          EXECUTION="time ./script_${ExeNameOut}.ksh" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r1300 r1317  
    973973            echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    974974          fi 
    975           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    976           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    977           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     975          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     976          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     977          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    978978          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    979979 
     
    10351035          # Default : mpirun used if nb_proc gt 1 
    10361036          # pour sortie out/err par process 
    1037           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1038           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1037          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
     1038          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10391039          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10401040          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
     
    10421042          # Default : mpirun is NOT used if nb_proc eq 1 
    10431043          # pour sortie out/err par process 
    1044           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1045           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1044          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1045          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10461046          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10471047          EXECUTION="time ./script_${ExeNameOut}.ksh" 
Note: See TracChangeset for help on using the changeset viewer.