source: TOOLS/PACK_IPSL/launch_and_measureTime.sh @ 1849

Last change on this file since 1849 was 1849, checked in by acosce, 12 years ago

Add parallel version - global double check - minor bug

  • Property svn:executable set to *
File size: 1.7 KB
Line 
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
15export JOB_DIR=${LS_SUBCWD:-${PWD}}
16export EXE_DIR=${JOB_DIR}
17source ${EXE_DIR}/DEM_utilities.sh
18
19
20export IGCM_DEM=${SCRATCHDIR}/IGCM_DEM
21
22
23# inputCmd="myIO/inputCmd.list"
24inputCmd="inputCmd_Realistic.list"
25output="IO_parallel/output.log"
26
27> ${inputCmd}
28
29listOfDir="output_ncrcat output_tar restart_tar debug_tar store_cp work_cp"
30
31for 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
51done
52
53
54
55startTime=$( getDateMilliSeconds )
56echo "start time:$startTime" >> $timeHandlingFile
57
58ccc_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
63meantime=$( getTimeDiffSeconds $startTime )
64
65endExecutionTime=$( getDateMilliSeconds )
66echo "end time:$endExecutionTime" >> $timeHandlingFile
67
68
69echo "meantime ncrcat = $meantime"
Note: See TracBrowser for help on using the repository browser.