Changeset 57
- Timestamp:
- 03/13/09 17:33:37 (15 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_job
r52 r57 5 5 #-Q- platine #BSUB -J ::Jobname:: # nom de la requete 6 6 #-Q- platine #BSUB -N # message a la fin du job 7 #-Q- platine #BSUB -o Script_Output_::Jobname::. 1 # nom du fichier de sortie7 #-Q- platine #BSUB -o Script_Output_::Jobname::.000001 # nom du fichier de sortie 8 8 #-Q- platine #BSUB -n ::JobNumProcTot:: # reservation des processeurs pour le job 9 9 #-Q- platine #BSUB -W 1:00 # Limite temps … … 15 15 #-Q- sx8brodie #PBS -m a # message a la fin du job 16 16 #-Q- sx8brodie #PBS -j o # regroupement des sorties du job : standard error et output 17 #-Q- sx8brodie #PBS -o Script_Output_::Jobname::. 1 # nom du fichier de sortie17 #-Q- sx8brodie #PBS -o Script_Output_::Jobname::.000001 # nom du fichier de sortie 18 18 #-Q- sx8brodie #PBS -S /usr/bin/ksh # shell de soumission 19 19 #-Q- sx8brodie #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot:: … … 29 29 #-Q- sx8mercure #PBS -m a # message a la fin du job 30 30 #-Q- sx8mercure #PBS -j o # regroupement des sorties du job : standard error et output 31 #-Q- sx8mercure #PBS -o Script_Output_::Jobname::. 1 # nom du fichier de sortie31 #-Q- sx8mercure #PBS -o Script_Output_::Jobname::.000001 # nom du fichier de sortie 32 32 #-Q- sx8mercure #PBS -S /usr/bin/ksh # shell de soumission 33 33 #-Q- sx8mercure #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot:: … … 325 325 echo "EXECUTION of : ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name} > ${Exe_Output} 2>&1" 326 326 typeset RET 327 RUN_DATE_BEGIN=$( date '+%Y-%m-%dT%H:%M:%S' ) 327 328 ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name} > ${Exe_Output} 2>&1 328 329 RET=$? 330 RUN_DATE_END=$( date '+%Y-%m-%dT%H:%M:%S' ) 329 331 if [ ${RET} -gt 0 ] ; then 330 332 echo "Return code of executable :" ${RET} … … 332 334 IGCM_sys_Cp ${Exe_Output} ${SUBMIT_DIR}/${PREFIX}_${Exe_Output}_error 333 335 fi 334 echo ${REAL_DATE_INIT}>> ${Exe_Output}335 date>> ${Exe_Output}336 echo "libIGCM RunDateBegin=${RUN_DATE_BEGIN}" >> ${Exe_Output} 337 echo "libIGCM RunDateEnd=${RUN_DATE_END}" >> ${Exe_Output} 336 338 else 337 339 echo "EXECUTION of : ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name} simulated for DRYRUN = " $DRYRUN -
trunk/libIGCM/AA_monitoring
r36 r57 94 94 if [ ! "X${liste_file_monitoring}" = X ] ; then 95 95 IGCM_sys_Get /l liste_file_monitoring ${RUN_DIR} 96 monitoring01 -q - p ${comp} -t "${config_UserChoices_JobName} monitoring" -o ${RUN_DIR}/MONITORING ${FER_ATLAS}/${monitoring_file} ${RUN_DIR}96 monitoring01 -q -c ${CARD_DIR} -p ${comp} -t "${config_UserChoices_JobName} monitoring" -o ${RUN_DIR}/MONITORING ${FER_ATLAS}/${monitoring_file} ${RUN_DIR} 97 97 fi 98 98 # -
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r52 r57 289 289 typeset LastPeriod Last_Script_Output_Name 290 290 (( LastPeriod=CumulPeriod-PeriodNb )) 291 Last_Script_Output_Name="${Script_Output_Prefix}_${config_UserChoices_JobName}.$ {LastPeriod}"291 Last_Script_Output_Name="${Script_Output_Prefix}_${config_UserChoices_JobName}.$( printf "%06d" ${LastPeriod} )" 292 292 #eval ls -l ${SUBMIT_DIR}/${Last_Script_Output_Name} 293 293 #eval IGCM_sys_Put_Out ${SUBMIT_DIR}/${Last_Script_Output_Name} ${R_OUT_KSH}/${Last_Script_Output_Name} > /dev/null 2>&1 … … 425 425 426 426 # ExeDate = ATM_Jun_12_09:34-SRF_Jun_12_09:34-OCE_Jun_12_09:34-ICE_Jun_12_09:34-CPL_Jun_12_09:33 427 # Would be nice to have next line but no way to format ls output (need to ls -l --time-style "+%Y-%m-%dT%H:%M") 428 # ExeDate = ATM_2009-06-12T09:34+SRF_2009-06-12T09:34+OCE_2009-06-12T09:34+ICE_2009-06-12T09:34+CPL_2009-06-12T09:34 427 429 ExeDate="" 428 430 NextExeSize="( " … … 442 444 IGCM_sys_FileSize ${LS_bin} ExeSize 443 445 444 set +A LS_comp -- $( ls -l ${LS_bin} )446 set +A LS_comp -- $( LC_TIME=en_US ls -l ${LS_bin} ) 445 447 if [ X${ExeDate} = X ] ; then 446 448 # First component exe date … … 478 480 ExeCpuLog=$( ${libIGCM}/libIGCM_sys/IGCM_add_out.awk ${Exe_Output}_tail.txt ) 479 481 RET=$? 480 if [ $RET -eq 0 ] ; then 481 echo "("${CumulPeriod} " , " ${PeriodDateBegin} " , " ${PeriodDateEnd} \ 482 " , " ${ExeCpuLog} " , " ${ExeDate}") \\" >> ${SUBMIT_DIR}/run.card 482 if [ $RET -eq 0 ] ; then 483 # ExeCpuLog variable contents 5 fields 484 echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${ExeCpuLog} ${ExeDate}" | \ 485 awk '{printf("# %11d | %15s | %15s | %19s | %19s | %15.5f | %15.5f | %15.5f | %s\n", \ 486 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/run.card 483 487 fi 484 488 eval FileToBeDeleted[${#FileToBeDeleted[@]}]="${Exe_Output}_tail.txt" … … 619 623 620 624 # Name of next Ksh Script output : 621 eval Script_Output="${Script_Output_Prefix}_${config_UserChoices_JobName}.$ {CumulPeriod}"625 eval Script_Output="${Script_Output_Prefix}_${config_UserChoices_JobName}.$( printf "%06d" ${CumulPeriod} )" 622 626 623 627 IGCM_debug_Print 1 "Submit next job" -
trunk/libIGCM/libIGCM_sys/IGCM_add_out.awk
r7 r57 13 13 # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 14 14 # History: 15 # Modification: 15 # Modification: Patrick.Brockmann@cea.fr 16 16 # 17 17 #************************************************************** … … 76 76 77 77 counter=0 78 # StartTime=[] 79 # EndTime=[] 80 Date_found=0 81 82 83 # print ENVIRON["LC_ALL"] 84 # ENVIRON["LC_ALL"]="fr_FR" 85 # print ENVIRON["LC_ALL"] 78 86 79 } 87 80 … … 199 192 } 200 193 201 if( info=="Start Time (date)" ) {202 StartTime[counter]=Res203 next204 }205 206 if( info=="End Time (date)" ) {207 EndTime[counter]=Res208 Information_found=0209 next210 }211 212 194 } 213 195 # Get information with time output on other hosts … … 245 227 246 228 } 247 # date end 248 # date begin 249 else if (Date_found == 0 && (match($0, "[a-z]+ *[a-z]+ *[0-9]+ *[0-9][0-9]:[0-9][0-9]:[0-9][0-9] *CET *[0-9]+"))) 250 { 229 230 # RUN_DATE_BEGIN 231 if ($0 ~ /RunDateBegin.*=/) { 251 232 myprint( "start date" ) 252 253 Date_found=1 254 StartTime[counter]=$0 255 256 } 257 else if (Date_found == 1 && (match($0, "[a-z]+ *[a-z]+ *[0-9]+ *[0-9][0-9]:[0-9][0-9]:[0-9][0-9] *CET *[0-9]+"))) 258 { 233 split($0,a,"=") 234 RunDateBegin=a[2] 235 } 236 237 # RUN_DATE_END 238 if ($0 ~ /RunDateEnd.*=/) { 259 239 myprint( "end date" ) 260 261 EndTime[counter]=$0 262 263 exit 264 240 split($0,a,"=") 241 RunDateEnd=a[2] 265 242 } 266 243 … … 293 270 294 271 myprint("Date of executables :") 295 for (i=1; i<=counter; i++) { 296 myprint("Start Time (date) :" StartTime[i]) 297 myprint("End Time (date) :" EndTime[i]) 298 } 299 printf("%s , %s , %.5f , %.5f , %.5f", StartTime[counter], EndTime[counter], RealTime, UserTime, SysTime) 272 myprint("Start Time :" RunDateBegin) 273 myprint("End Time :" RunDateEnd) 274 275 printf("%s %s %.5f %.5f %.5f", RunDateBegin, RunDateEnd, RealTime, UserTime, SysTime) 300 276 exit(0) 301 277 } -
trunk/libIGCM/run.card.init
r22 r57 5 5 # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 6 6 7 # contient la date du run en cours ou du run en attente 8 # last date of loop == .suivi 7 #======================================================================== 9 8 [Configuration] 10 9 #last PREFIX 11 10 OldPrefix= 12 #Compute date of loop == .suivi11 #Compute date of loop 13 12 PeriodDateBegin= 14 13 PeriodDateEnd= … … 17 16 PeriodState="Start" 18 17 19 # contient la trace des executions18 #======================================================================== 20 19 [PostProcessing] 21 # postraitements state == .date22 20 23 21 #RebuildRunning=y/n … … 30 28 SeasonalRunning=n 31 29 32 # machine time == .log30 #======================================================================== 33 31 [Log] 34 32 # Executables Size 35 33 LastExeSize=() 36 # CumulPeriod | PeriodDateBegin | PeriodDateEnd | RunDateBegin | RunDateEnd | RealCpuTime | UserCpuTime | SysCpuTime | ExeDate 37 ExeLog = \ 34 35 #------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 36 # CumulPeriod | PeriodDateBegin | PeriodDateEnd | RunDateBegin | RunDateEnd | RealCpuTime | UserCpuTime | SysCpuTime | ExeDate 37 #------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.