1 | # Nom arbitraire du travail LoadLeveler |
---|
2 | # @ job_name = run.kw |
---|
3 | # Type de travail |
---|
4 | # @ job_type = parallel |
---|
5 | # Fichier de sortie standard du travail |
---|
6 | # @ output = $(job_name).$(jobid) |
---|
7 | # Fichier de sortie d'erreur du travail |
---|
8 | # @ error = $(job_name).$(jobid) |
---|
9 | # @ notify_user = xlvlod@lodyc.jussieu.fr |
---|
10 | # @ notification = complete |
---|
11 | # Temps CPU max. en seconde par processus |
---|
12 | # @ cpu_limit = 2000 |
---|
13 | # Mémoire max. utulisée par processus (ici 700 Megaoctets) |
---|
14 | # @ data_limit = 3.9Gb |
---|
15 | # @ stack_limit = 0.2Gb |
---|
16 | # Nombre de processus demandé (ici 8) |
---|
17 | # @ total_tasks = 8 |
---|
18 | # @ queue |
---|
19 | |
---|
20 | ### Pour avoir l'écho des commandes |
---|
21 | set -x |
---|
22 | |
---|
23 | ### Variables d'environnement |
---|
24 | export DATE=`date '+%Y%m%d'_'%H%M%S'` |
---|
25 | export COMPIL_DIR=$LOADL_STEP_INITDIR |
---|
26 | |
---|
27 | ### Répertoire temporaire de travail |
---|
28 | #cd $TMPDIR |
---|
29 | #export TEMPD=$TMPDIR |
---|
30 | cd $COMPIL_DIR |
---|
31 | rm -rf TEMP |
---|
32 | mkdir TEMP |
---|
33 | export TEMPD=$COMPIL_DIR/TEMP |
---|
34 | cd $TEMPD |
---|
35 | |
---|
36 | ### pour la sauvegarde de la sortie de job |
---|
37 | cp $COMPIL_DIR/FICH_RUN . |
---|
38 | export RUN_NAME=`more FICH_RUN` |
---|
39 | export MFDIR=ZAHIR_${RUN_NAME} |
---|
40 | |
---|
41 | cp $COMPIL_DIR/MP_PROCS . |
---|
42 | export MP_PROCS=`more MP_PROCS` |
---|
43 | |
---|
44 | ### Prepration des repertoires |
---|
45 | cp -r $COMPIL_DIR/flow.x . |
---|
46 | cp -r $COMPIL_DIR/input . |
---|
47 | cp -r $COMPIL_DIR/output . |
---|
48 | |
---|
49 | ### create a directory on gaya |
---|
50 | rsh gaya -n mkdir $MFDIR |
---|
51 | |
---|
52 | ### Exécution d'un programme MPI |
---|
53 | ./flow.x |
---|
54 | |
---|
55 | #### new compression |
---|
56 | make clean |
---|
57 | cd .. |
---|
58 | $HOME/bin/compress $TEMPD $COMPIL_DIR $MP_PROCS $MFDIR # tar cf all-in-one.tar output input src |
---|
59 | |
---|