1 | #!/bin/bash |
---|
2 | |
---|
3 | #MSUB -r pack_ipsl # Nom du job |
---|
4 | #MSUB -e IO_parallel/launchMeasureTimeOutput/pack_ipsl_%I.e |
---|
5 | #MSUB -o IO_parallel/launchMeasureTimeOutput/pack_ipsl_%I.o |
---|
6 | #MSUB -n 7 # Reservation du processus |
---|
7 | #MSUB -T 2500 # Limite de temps elapsed du job (en secondes) |
---|
8 | #MSUB -A tgcc0013 |
---|
9 | #MSUB -q standard |
---|
10 | # #MSUB -q large |
---|
11 | #MSUB -Qos test |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | export JOB_DIR=${LS_SUBCWD:-${PWD}} |
---|
16 | export EXE_DIR=${JOB_DIR} |
---|
17 | source ${EXE_DIR}/DEM_utilities.sh |
---|
18 | |
---|
19 | |
---|
20 | export IGCM_DEM=${SCRATCHDIR}/IGCM_DEM |
---|
21 | |
---|
22 | |
---|
23 | # inputCmd="myIO/inputCmd.list" |
---|
24 | inputCmd="inputCmd_Realistic.list" |
---|
25 | output="IO_parallel/output.log" |
---|
26 | |
---|
27 | > ${inputCmd} |
---|
28 | |
---|
29 | listOfDir="output_ncrcat output_tar restart_tar debug_tar store_cp work_cp" |
---|
30 | |
---|
31 | for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do |
---|
32 | |
---|
33 | PATH_SIMU=$( dirname $CONFIG ) |
---|
34 | echo "PATH_SIMU=$PATH_SIMU" |
---|
35 | echo "------------------------------------------" |
---|
36 | for typeDir in $listOfDir |
---|
37 | do |
---|
38 | typeDirList=`find $PATH_SIMU -type d -name "$typeDir" ` |
---|
39 | for dir in $typeDirList |
---|
40 | do |
---|
41 | # echo "dir=$dir" |
---|
42 | listFilesInDir=`find $dir -name "*.list" ` |
---|
43 | for file in $listFilesInDir |
---|
44 | do |
---|
45 | echo "./process_list.sh $file" >> ${inputCmd} |
---|
46 | done |
---|
47 | done |
---|
48 | done |
---|
49 | |
---|
50 | |
---|
51 | done |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | startTime=$( getDateMilliSeconds ) |
---|
56 | echo "start time:$startTime" >> $timeHandlingFile |
---|
57 | |
---|
58 | ccc_mprun ./cmd_launch.exe ${inputCmd} 2>${output} |
---|
59 | # ./cmd_launch.exe ${inputCmd} 2>${output} |
---|
60 | # ccc_mprun -p standard -n ${BRIDGE_MSUB_NPROC} ./cmd_launch.exe ${inputCmd} 2>myIO/output.log |
---|
61 | # mpirun -n 4 ./cmd_launch.exe myIO/inputCmd10.list 2>myIO/output.log |
---|
62 | |
---|
63 | meantime=$( getTimeDiffSeconds $startTime ) |
---|
64 | |
---|
65 | endExecutionTime=$( getDateMilliSeconds ) |
---|
66 | echo "end time:$endExecutionTime" >> $timeHandlingFile |
---|
67 | |
---|
68 | |
---|
69 | echo "meantime ncrcat = $meantime" |
---|