[1] | 1 | #!/bin/ksh |
---|
[1090] | 2 | |
---|
| 3 | # subjob - script for automatic generation and submission of batch-job files |
---|
| 4 | # for various batch queuing systems |
---|
| 5 | |
---|
[1046] | 6 | #--------------------------------------------------------------------------------# |
---|
| 7 | # This file is part of PALM. |
---|
| 8 | # |
---|
| 9 | # PALM is free software: you can redistribute it and/or modify it under the terms |
---|
| 10 | # of the GNU General Public License as published by the Free Software Foundation, |
---|
| 11 | # either version 3 of the License, or (at your option) any later version. |
---|
| 12 | # |
---|
| 13 | # PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 14 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 15 | # A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 16 | # |
---|
| 17 | # You should have received a copy of the GNU General Public License along with |
---|
| 18 | # PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 19 | # |
---|
| 20 | # Copyright 1997-2012 Leibniz University Hannover |
---|
| 21 | #--------------------------------------------------------------------------------# |
---|
| 22 | # |
---|
| 23 | # Current revisions: |
---|
[1090] | 24 | # ------------------ |
---|
[1184] | 25 | # use of cluster/express queue enabled(ibmh) |
---|
| 26 | # vinessa added (imuk) |
---|
[1046] | 27 | # |
---|
| 28 | # Former revisions: |
---|
| 29 | # ----------------- |
---|
[169] | 30 | # $Id: subjob 1184 2013-06-17 14:06:44Z heinze $ |
---|
[1047] | 31 | # |
---|
[1104] | 32 | # 1103 2013-02-20 02:15:53Z raasch |
---|
| 33 | # bash compatibility adjustments (usage of OPTIND, output formatting with printf |
---|
| 34 | # instead typeset -L/R), |
---|
| 35 | # further adjustments for lckyuh |
---|
| 36 | # |
---|
[1100] | 37 | # 2013-02-10 01:47:43Z raasch |
---|
| 38 | # adjustments for Kyushu-Univeristy computing center (lckyuh - hayaka) |
---|
| 39 | # and for Forwind cluster (lcflow) |
---|
| 40 | # |
---|
[1096] | 41 | # 1094 2013-02-03 01:52:12Z raasch |
---|
| 42 | # new option -P for explicit setting of ssh/scp port, |
---|
| 43 | # decalpha parts (yonsei) removed |
---|
| 44 | # |
---|
[1091] | 45 | # 2013-02-02 07:06:13Z raasch |
---|
[1099] | 46 | # adjustments for Kyushu-University computing center (lckyut - tatara) |
---|
[1091] | 47 | # old changelog messages removed |
---|
| 48 | # |
---|
[1047] | 49 | # 1046 2012-11-09 14:38:45Z maronga |
---|
| 50 | # code put under GPL (PALM 3.9) |
---|
| 51 | # |
---|
[1090] | 52 | # 08/07/94 - Siggi - first version finished |
---|
| 53 | # 29/06/94 - Siggi - script development started |
---|
| 54 | #--------------------------------------------------------------------------------# |
---|
| 55 | # subjob - script for automatic generation and submission of batch-job files |
---|
| 56 | # for various batch queuing systems |
---|
| 57 | #--------------------------------------------------------------------------------# |
---|
[1] | 58 | |
---|
| 59 | |
---|
| 60 | # VARIABLENVEREINBARUNGEN + DEFAULTWERTE |
---|
[352] | 61 | delete_dayfile=false |
---|
[799] | 62 | email_notification=none |
---|
[122] | 63 | group_number=none |
---|
[1] | 64 | locat=normal |
---|
| 65 | no_default_queue=none |
---|
| 66 | no_submit=false |
---|
| 67 | job_catalog="~/job_queue" |
---|
| 68 | job_name=none |
---|
| 69 | local_user=$LOGNAME |
---|
| 70 | node_usage=shared |
---|
[475] | 71 | numprocs=0 |
---|
[1] | 72 | punkte="..........................................................." |
---|
| 73 | submcom=qsub |
---|
| 74 | queue=default |
---|
| 75 | remote_host=none |
---|
| 76 | remote_user="" |
---|
| 77 | verify=true |
---|
| 78 | |
---|
| 79 | typeset -i cputime=0 memory=0 Memory=0 minuten resttime sekunden stunden |
---|
[696] | 80 | typeset -i inumprocs mpi_tasks=0 nodes=0 processes_per_node=0 tasks_per_node=0 threads_per_task=1 |
---|
[1] | 81 | |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | # FEHLERBEHANDLUNG |
---|
| 85 | # BEI EXIT: |
---|
| 86 | trap 'if [[ $locat != normal ]] |
---|
| 87 | then |
---|
| 88 | case $locat in |
---|
| 89 | (option) printf "\n --> available optios can be displayed" |
---|
| 90 | printf " by typing:" |
---|
| 91 | printf "\n \"subjob ?\" \n";; |
---|
| 92 | (ftpcopy|parameter|scp|verify) printf "\n";; |
---|
| 93 | (*) printf "\n +++ unknown error" |
---|
| 94 | printf "\n please inform S. Raasch!\n" |
---|
| 95 | esac |
---|
| 96 | [[ -f $job_to_send ]] && rm $job_to_send |
---|
| 97 | printf "\n\n+++ SUBJOB killed \n\n" |
---|
| 98 | fi' exit |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | # BEI TERMINAL-BREAK: |
---|
| 102 | trap '[[ -f $job_to_send ]] && rm $job_to_send |
---|
| 103 | printf "\n\n+++ SUBJOB killed \n\n" |
---|
| 104 | exit |
---|
| 105 | ' 2 |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | # LOKALEN HOSTNAMEN FESTSTELLEN |
---|
| 111 | local_host=$(hostname) |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | # HOSTSPEZIFISCHE VARIABLEN VEREINBAREN BZW. PRUEFEN, OB LOKALER HOST |
---|
| 116 | # UEBERHAUPT ZULAESSIG IST |
---|
[717] | 117 | # Note: One of the entries for "lck" or "lckordi" always has to be |
---|
| 118 | # comment out, because the hostname (node*) is same for both machines |
---|
[1] | 119 | case $local_host in |
---|
| 120 | (atmos) local_addres=172.20.25.35; local_host=lcide;; |
---|
[102] | 121 | (autan) local_addres=130.75.105.57; local_host=lcmuk;; |
---|
[5] | 122 | (bora) local_addres=130.75.105.103; local_host=lcmuk;; |
---|
[400] | 123 | (bd1) local_addres=130.73.232.64; local_host=lcsgib;; |
---|
| 124 | (bd2) local_addres=130.73.232.65; local_host=lcsgib;; |
---|
| 125 | (bd3) local_addres=130.73.232.66; local_host=lcsgib;; |
---|
| 126 | (bd4) local_addres=130.73.232.67; local_host=lcsgib;; |
---|
| 127 | (b01*|bicegate1) local_addres=130.73.232.102; local_host=lcsgib;; |
---|
[1103] | 128 | (b04*) local_addres=133.5.4.33; local_host=lckyuh;; |
---|
[291] | 129 | (bicegate2) local_addres=130.73.232.103; local_host=lcsgib;; |
---|
[749] | 130 | (blizzard1) local_addres=136.172.40.15; local_host=ibmh;; |
---|
[12] | 131 | (breva) local_addres=130.75.105.98; local_host=lcmuk;; |
---|
[1174] | 132 | (buran) local_addres=130.75.105.58; local_host=lcmuk;; |
---|
[372] | 133 | (caurus) local_addres=130.75.105.19; local_host=lcmuk;; |
---|
[693] | 134 | (climate*) local_addres=165.132.26.68; local_host=lcyon;; |
---|
[108] | 135 | (compute-*.local) local_addres=172.20.4.2; local_host=lcfimm;; |
---|
[1] | 136 | (cs*) local_addres=136.172.44.131; local_host=nech;; |
---|
[5] | 137 | (elephanta) local_addres=130.75.105.6; local_host=lcmuk;; |
---|
[108] | 138 | (fimm.bccs.uib.no) local_addres=172.20.4.2; local_host=lcfimm;; |
---|
[1099] | 139 | (flow01) local_addres=10.141.255.71; local_host=lcflow;; |
---|
| 140 | (flow02) local_addres=10.141.255.72; local_host=lcflow;; |
---|
[367] | 141 | (node*) local_addres=165.132.26.61 local_host=lck;; |
---|
[717] | 142 | # (node*) local_addres=210.219.61.8 local_host=lckordi;; |
---|
[693] | 143 | (gaia*) local_addres=150.183.146.24; local_host=ibmkisti;; |
---|
[101] | 144 | (gallego) local_addres=130.75.105.10; local_host=lcmuk;; |
---|
[1] | 145 | (gfdl5) local_addres=165.132.26.58; local_host=ibmy;; |
---|
[5] | 146 | (gregale) local_addres=130.75.105.109; local_host=lcmuk;; |
---|
| 147 | (hababai) local_addres=130.75.105.108; local_host=lcmuk;; |
---|
[1099] | 148 | (hayaka*) local_addres=133.5.4.33; local_host=lckyuh;; |
---|
[892] | 149 | (hexagon.bccs.uib.no) local_addres=129.177.20.113; local_host=lcxe6;; |
---|
[400] | 150 | (hd1) local_addres=130.75.4.104; local_host=lcsgih;; |
---|
| 151 | (hd2) local_addres=130.75.4.105; local_host=lcsgih;; |
---|
| 152 | (hd3) local_addres=130.75.4.106; local_host=lcsgih;; |
---|
| 153 | (hd4) local_addres=130.75.4.107; local_host=lcsgih;; |
---|
[739] | 154 | (hicegate0) local_addres=130.75.4.101; local_host=lcsgih;; |
---|
[292] | 155 | (h01*|hicegate1) local_addres=130.75.4.102; local_host=lcsgih;; |
---|
[210] | 156 | (hicegate2) local_addres=130.75.4.103; local_host=lcsgih;; |
---|
[440] | 157 | (hx*) local_addres=133.3.51.11; local_host=lckyoto;; |
---|
[749] | 158 | (inferno) local_addres=130.75.105.5; local_host=lcmuk;; |
---|
[5] | 159 | (irifi) local_addres=130.75.105.104; local_host=lcmuk;; |
---|
[407] | 160 | (sno) local_addres=130.75.105.113; local_host=lcmuk;; |
---|
[5] | 161 | (levanto) local_addres=130.75.105.45; local_host=lcmuk;; |
---|
[1040] | 162 | (login*) local_addres=118.128.66.223; local_host=lckiaps;; |
---|
[5] | 163 | (maestro) local_addres=130.75.105.2; local_host=lcmuk;; |
---|
[1099] | 164 | (meller) local_addres=134.106.74.155; local_host=lcfor;; |
---|
[437] | 165 | (meteo-login*) local_addres=193.166.211.144;local_host=lcxt5m;; |
---|
[892] | 166 | (hexagon*) local_addres=129.177.20.113; local_host=lcxe6;; |
---|
[1] | 167 | (nobel*) local_addres=150.183.5.101; local_host=ibms;; |
---|
[5] | 168 | (orkan) local_addres=130.75.105.3; local_host=lcmuk;; |
---|
| 169 | (ostria) local_addres=130.75.105.106; local_host=lcmuk;; |
---|
[205] | 170 | (paesano) local_addres=130.75.105.46; local_host=lcmuk;; |
---|
[1099] | 171 | (pcj*) local_addres=172.31.120.1; local_host=lckyut;; |
---|
[789] | 172 | (pingui) local_addres=134.106.74.118; local_host=lcfor;; |
---|
[5] | 173 | (quanero) local_addres=130.75.105.107; local_host=lcmuk;; |
---|
[622] | 174 | (rte*) local_addres=133.5.185.60; local_host=lcrte;; |
---|
[1] | 175 | (scirocco) local_addres=172.20.25.41; local_host=lcmuk;; |
---|
[799] | 176 | (solano) local_addres=130.75.105.110; local_host=lcmuk;; |
---|
[1090] | 177 | (sugoka*) local_addres=172.31.120.1; local_host=lckyut;; |
---|
[1] | 178 | (sun1|sun2) local_addres=130.75.6.1; local_host=unics;; |
---|
[259] | 179 | (sx-*) local_addres=172.16.1.131; local_host=necriam;; |
---|
[181] | 180 | (r1*) local_addres=130.75.4.102; local_host=lcsgih;; |
---|
[196] | 181 | (r2*) local_addres=130.73.232.102; local_host=lcsgib;; |
---|
[635] | 182 | (t2a*) local_addres=10.1.6.165; local_host=lctit;; |
---|
[1021] | 183 | (urban*) local_addres=147.46.30.151 local_host=lcsb;; |
---|
[1184] | 184 | (vinessa) local_addres=130.75.105.112; local_host=lcmuk;; |
---|
[1] | 185 | (vorias) local_addres=172.20.25.43; local_host=lcmuk;; |
---|
[622] | 186 | (*.cc.kyushu-u.ac.jp) local_addres=133.5.4.129; local_host=ibmku;; |
---|
[1] | 187 | (*) printf "\n +++ \"$local_host\" unknown"; |
---|
| 188 | printf "\n please inform S. Raasch!"; |
---|
| 189 | locat=parameter; exit;; |
---|
| 190 | esac |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | # REMOTE HOST DEFAULTMAESSIG = LOCAL HOST SETZEN |
---|
| 195 | remote_host=$local_host |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | |
---|
| 200 | # PROZEDUROPTIONEN EINLESEN |
---|
[1094] | 201 | while getopts :c:dDe:g:h:m:n:N:O:P:q:t:T:u:vX: option |
---|
[1] | 202 | do |
---|
| 203 | case $option in |
---|
| 204 | (c) job_catalog=$OPTARG;; |
---|
| 205 | (d) delete_dayfile=true;; |
---|
| 206 | (D) no_submit=true;; |
---|
[352] | 207 | (e) email_notification=$OPTARG;; |
---|
[125] | 208 | (g) group_number=$OPTARG;; |
---|
[1] | 209 | (h) remote_host=$OPTARG;; |
---|
| 210 | (m) memory=$OPTARG;; |
---|
| 211 | (n) job_name=$OPTARG;; |
---|
| 212 | (N) node_usage=$OPTARG;; |
---|
| 213 | (O) threads_per_task=$OPTARG;; |
---|
[1094] | 214 | (P) scp_port=$OPTARG;; |
---|
[1] | 215 | (q) no_default_queue=$OPTARG;; |
---|
| 216 | (t) cputime=$OPTARG;; |
---|
| 217 | (T) tasks_per_node=$OPTARG;; |
---|
| 218 | (u) remote_user=$OPTARG;; |
---|
| 219 | (v) verify=false;; |
---|
| 220 | (X) numprocs=$OPTARG;; |
---|
| 221 | (\?) printf "\n +++ Option $OPTARG unknown \n"; |
---|
| 222 | locat=option; exit;; |
---|
| 223 | esac |
---|
| 224 | done |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | # JOBDATEINAMEN ALS NAECHSTES ARGUMENT HOLEN |
---|
[1103] | 228 | (( to_shift = $OPTIND - 1 )) |
---|
| 229 | shift $to_shift; file_to_send=$1 |
---|
[1] | 230 | |
---|
| 231 | |
---|
| 232 | # KURZE AUFRUFBESCHREIBUNG WIRD HIER AUSGEGEBEN |
---|
| 233 | if [ "$1" = "?" ] |
---|
| 234 | then |
---|
| 235 | (printf "\n *** subjob can be called as follows:\n" |
---|
| 236 | printf "\n subjob -c.. -d -D -h.. -m.. -q.. -t.. -u.. -v <jobfile>\n" |
---|
| 237 | printf "\n Description of available options:\n" |
---|
| 238 | printf "\n Option Description Default-Value" |
---|
| 239 | printf "\n -c job-input- and output-catalog ~/job_queue" |
---|
| 240 | printf "\n -d no job-protocol will be created ---" |
---|
| 241 | printf "\n -D only the job-file will be created ---" |
---|
| 242 | printf "\n -h execution host, available hosts: $remote_host" |
---|
[693] | 243 | printf "\n ibm, ibmh, ibmkisti, ibmku, ibms, ibmy, lc...," |
---|
[1040] | 244 | printf "\n lckiaps, lctit, nech, necriam, unics" |
---|
[1] | 245 | printf "\n -m memory demand per process in MByte ---" |
---|
| 246 | printf "\n -n jobname <jobdatei>" |
---|
| 247 | printf "\n -O threads per task (for OpenMP usage) 1" |
---|
[1094] | 248 | printf "\n -P ssh/scp port default port" |
---|
[1] | 249 | printf "\n -q job-queue to be used default" |
---|
| 250 | printf "\n -t allowed cpu-time in seconds ---" |
---|
| 251 | printf "\n -T tasks per node (on parallel hosts) ---" |
---|
| 252 | printf "\n -u username on execution host from .netrc" |
---|
| 253 | printf "\n -v no prompt for confirmation ---" |
---|
| 254 | printf "\n -X # of processors (on parallel hosts) 1" |
---|
| 255 | printf "\n " |
---|
| 256 | printf "\n The only possible positional parameter is <jobfile>:" |
---|
| 257 | printf "\n The complete NQS-job must be provided here." |
---|
| 258 | printf "\n <jobfile>=? creates this outline\n\n") | more |
---|
| 259 | exit |
---|
| 260 | fi |
---|
| 261 | |
---|
| 262 | |
---|
| 263 | |
---|
| 264 | # PRUEFEN, OB JOBDATEI ANGEGEBEN WURDE UND OB SIE AUCH EXISTIERT |
---|
| 265 | if [[ "$file_to_send" = "" ]] |
---|
| 266 | then |
---|
| 267 | printf "\n +++ job-file missing" |
---|
| 268 | locat=parameter; exit |
---|
| 269 | else |
---|
| 270 | if [[ -f $file_to_send ]] |
---|
| 271 | then |
---|
| 272 | true |
---|
| 273 | else |
---|
| 274 | printf "\n +++ job-file: " |
---|
| 275 | printf "\n $file_to_send" |
---|
| 276 | printf "\n does not exist" |
---|
| 277 | locat=parameter; exit |
---|
| 278 | fi |
---|
| 279 | fi |
---|
| 280 | |
---|
| 281 | |
---|
| 282 | |
---|
| 283 | # FALLS KEIN JOBNAME ANGEGEBEN WURDE, WIRD JOBNAME = JOBDATEINAME |
---|
| 284 | # GESETZT. VORAUSSETZUNG: JOBDATEINAME BEINHALTET KEINE PFADE |
---|
| 285 | if [[ $job_name = none ]] |
---|
| 286 | then |
---|
| 287 | job_name=$file_to_send |
---|
| 288 | fi |
---|
| 289 | if [[ $(echo $job_name | grep -c "/") != 0 ]] |
---|
| 290 | then |
---|
| 291 | printf "\n +++ job-file name: " |
---|
| 292 | printf "\n $job_name" |
---|
| 293 | printf "\n must not contain \"/\"-characters" |
---|
| 294 | locat=parameter; exit |
---|
| 295 | fi |
---|
| 296 | |
---|
| 297 | |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | # HOSTSPEZIFISCHE GROESSEN VEREINBAREN BZW. ABBRUCH BEI UNZULAESSIGEM HOST |
---|
| 301 | # ODER WENN HOST NICHT ANGEGEBEN WURDE |
---|
| 302 | if [[ $remote_host = none ]] |
---|
| 303 | then |
---|
| 304 | printf "\n +++ host missing" |
---|
| 305 | locat=option; exit |
---|
| 306 | else |
---|
| 307 | case $remote_host in |
---|
[251] | 308 | (ibm) queue=p690_standard; remote_addres=134.76.99.81; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; |
---|
[1184] | 309 | (ibmh) queue=cluster; remote_addres=136.172.40.15; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; |
---|
[693] | 310 | (ibmkisti) queue=class.32plus; remote_addres=150.183.146.24; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; |
---|
[622] | 311 | (ibmku) queue=s4; remote_addres=133.5.4.129; submcom=/usr/local/bin/llsubmit;; |
---|
[251] | 312 | (ibms) queue=p_normal; remote_addres=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; |
---|
| 313 | (ibmy) queue=parallel; remote_addres=165.132.26.58; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; |
---|
| 314 | (lcfimm) remote_addres=172.20.4.2; submcom=/opt/torque/bin/qsub;; |
---|
[1099] | 315 | (lcflow) remote_addres=10.140.1.71; submcom=/cm/shared/apps/sge/6.2u5p2/bin/lx26-amd64/qsub;; |
---|
[440] | 316 | (lckyoto) remote_addres=133.3.51.11; submcom=/thin/local/bin/qsub;; |
---|
[540] | 317 | (lcsgib) queue=smallq; remote_addres=130.73.232.104; submcom=/opt/moab/bin/msub;; |
---|
| 318 | (lcsgih) queue=smallq; remote_addres=130.75.4.101; submcom=/opt/moab/bin/msub;; |
---|
[367] | 319 | (lck) remote_addres=165.132.26.61; submcom=/usr/torque/bin/qsub;; |
---|
[1040] | 320 | (lckiaps) remote_addres=118.128.66.223; submcom=/cm/shared/apps/pbspro/11.0.2.110766/bin/qsub;; |
---|
[717] | 321 | (lckordi) remote_addres=210.219.61.8; submcom=/usr/torque/bin/qsub;; |
---|
[1099] | 322 | (lckyuh) remote_addres=133.5.4.33; submcom=/usr/bin/pjsub;; |
---|
[1090] | 323 | (lckyut) remote_addres=133.5.4.37; submcom=/usr/bin/pjsub;; |
---|
[1021] | 324 | (lcsb) remote_addres=147.46.30.151; submcom=/usr/torque/bin/qsub;; |
---|
[635] | 325 | (lctit) queue=S; remote_addres=10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;; |
---|
[892] | 326 | (lcxe6) remote_addres=129.177.20.113; submcom=/opt/torque/2.5.10/bin/qsub;; |
---|
[437] | 327 | (lcxt5m) remote_addres=193.166.211.144; submcom=/opt/pbs/10.1.0.91350/bin/qsub;; |
---|
[693] | 328 | (lcyon) remote_addres=165.132.26.68; submcom=/usr/torque/bin/qsub;; |
---|
[251] | 329 | (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=136.172.44.147; submcom="/usr/local/bin/qsub";; |
---|
| 330 | (necriam) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=172.16.1.131; submcom="/usr/bin/nqsII/qsub";; |
---|
| 331 | (vpp) qsubmem=m; qsubtime=t; queue=vpp; remote_addres=130.75.4.130;; |
---|
| 332 | (unics) qsubmem=d; qsubtime=t; queue=unics; remote_addres=130.75.6.1;; |
---|
| 333 | (*) printf "\n +++ hostname \"$remote_host\" not allowed"; |
---|
| 334 | locat=parameter; exit;; |
---|
[1] | 335 | esac |
---|
| 336 | fi |
---|
| 337 | |
---|
| 338 | |
---|
| 339 | # EVTL. PRUEFEN, OB ANGEGEBENE QUEUE ZULAESSIG IST |
---|
| 340 | if [[ $no_default_queue != none ]] |
---|
| 341 | then |
---|
| 342 | error=false |
---|
| 343 | ndq=$no_default_queue |
---|
| 344 | case $remote_host in |
---|
| 345 | (ibm) case $ndq in |
---|
| 346 | (p690_express|p690_standard|p690_long) error=false;; |
---|
| 347 | (*) error=true;; |
---|
| 348 | esac;; |
---|
| 349 | (ibmh) case $ndq in |
---|
[1184] | 350 | (cluster|express) error=false;; |
---|
[1] | 351 | (*) error=true;; |
---|
| 352 | esac;; |
---|
[693] | 353 | (ibmkisti) case $ndq in |
---|
| 354 | (class.32plus|class.1-2|class.2-32) error=false;; |
---|
| 355 | (*) error=true;; |
---|
| 356 | esac;; |
---|
[622] | 357 | (ibmku) case $ndq in |
---|
| 358 | (sdbg1|sdbg2|sdbg4|s4|s16|s32|s32-s) error=false;; |
---|
| 359 | (*) error=true;; |
---|
| 360 | esac;; |
---|
[1] | 361 | (ibms) case $ndq in |
---|
| 362 | (express|normal|p_express|p_normal|p_normal_1.3|p_normal_1.7|grand) error=false;; |
---|
| 363 | (*) error=true;; |
---|
| 364 | esac;; |
---|
| 365 | (ibmy) case $ndq in |
---|
| 366 | (parallel) error=false;; |
---|
| 367 | (*) error=true;; |
---|
| 368 | esac;; |
---|
[1099] | 369 | (lcflow) case $ndq in |
---|
| 370 | (cfd_lom_long.q|cfd_him_long.q|cfd_lom_serl.q|cfd_lom_shrt.q|cfd_him_shrt.q) error=false;; |
---|
| 371 | (*) error=true;; |
---|
| 372 | esac;; |
---|
[1040] | 373 | (lckiaps) case $ndq in |
---|
| 374 | (express|normal) error=false;; |
---|
| 375 | (*) error=true;; |
---|
| 376 | esac;; |
---|
[440] | 377 | (lckyoto) case $ndq in |
---|
| 378 | (eh|ph) error=false;; |
---|
| 379 | (*) error=true;; |
---|
| 380 | esac;; |
---|
[1099] | 381 | (lckyuh) case $ndq in |
---|
| 382 | (fx-dbg|fx-single|fx-small|fx-middle|fx-large) error=false;; |
---|
| 383 | (*) error=true;; |
---|
| 384 | esac;; |
---|
[1090] | 385 | (lckyut) case $ndq in |
---|
| 386 | (cx-dbg|cx-single|cx-small|cx-middle|cx-large) error=false;; |
---|
| 387 | (*) error=true;; |
---|
| 388 | esac;; |
---|
[191] | 389 | (lcsgib|lcsgih) case $ndq in |
---|
[416] | 390 | (testq|serialq|smallq|mediumq|bigq|workq|dataq|permq|special1q) error=false;; |
---|
[191] | 391 | (*) error=true;; |
---|
| 392 | esac;; |
---|
[1] | 393 | (lctit) case $ndq in |
---|
[635] | 394 | (G|L128|L256|L512H|S|S96|V) error=false;; |
---|
[1] | 395 | (*) error=true;; |
---|
| 396 | esac;; |
---|
| 397 | (t3eb) case $ndq in |
---|
| 398 | (berte|p50|p100|p392|forfree|p25himem) error=false;; |
---|
| 399 | (*) error=true;; |
---|
| 400 | esac;; |
---|
[251] | 401 | (necriam) case $ndq in |
---|
[253] | 402 | (SP|SS|P6) error=false;; |
---|
[251] | 403 | (*) error=true;; |
---|
| 404 | esac;; |
---|
[1] | 405 | (t3eh) case $ndq in |
---|
| 406 | (para_t3e|em|k|l|lm|comp_t3e|c|p|ht) error=false;; |
---|
| 407 | (*) error=true;; |
---|
| 408 | esac;; |
---|
| 409 | (t3ej2|t3ej5) case $ndq in |
---|
| 410 | (low|normal|high) error=false;; |
---|
| 411 | (*) error=true;; |
---|
| 412 | esac;; |
---|
| 413 | (t3es) case $ndq in |
---|
| 414 | (batch|serial-4|pe4|p48|pe16|pe32|pe64|pe128) error=false;; |
---|
| 415 | (*) error=true;; |
---|
| 416 | esac;; |
---|
| 417 | (unics) case $ndq in |
---|
| 418 | (unics|ht) error=false;; |
---|
| 419 | (*) error=true;; |
---|
| 420 | esac;; |
---|
| 421 | esac |
---|
| 422 | if [[ $error = true ]] |
---|
| 423 | then |
---|
| 424 | printf "\n +++ queue \"$no_default_queue\" on host \"$remote_host\" not allowed" |
---|
| 425 | locat=parameter; exit |
---|
| 426 | else |
---|
| 427 | queue=$no_default_queue |
---|
| 428 | fi |
---|
| 429 | fi |
---|
| 430 | |
---|
| 431 | |
---|
| 432 | |
---|
| 433 | # PRUEFEN DER CPU-ZEIT, ZEIT NACH STUNDEN, MINUTEN UND SEKUNDEN |
---|
| 434 | # AUFTEILEN |
---|
| 435 | done=false |
---|
| 436 | while [[ $done = false ]] |
---|
| 437 | do |
---|
| 438 | if (( $cputime <= 0 )) |
---|
| 439 | then |
---|
| 440 | printf "\n +++ wrong cpu-time or cpu-time missing" |
---|
| 441 | printf "\n >>> Please type cpu-time in seconds as INTEGER:" |
---|
| 442 | printf "\n >>> " |
---|
| 443 | read cputime 1>/dev/null 2>&1 |
---|
| 444 | else |
---|
| 445 | done=true |
---|
| 446 | fi |
---|
| 447 | done |
---|
| 448 | if [[ $remote_host = nech ]] |
---|
| 449 | then |
---|
| 450 | if (( tasks_per_node != 0 )) |
---|
| 451 | then |
---|
| 452 | (( cputime = cputime * tasks_per_node )) |
---|
| 453 | elif [[ $numprocs != 0 ]] |
---|
| 454 | then |
---|
| 455 | (( cputime = cputime * numprocs )) |
---|
| 456 | fi |
---|
| 457 | fi |
---|
| 458 | (( stunden = cputime / 3600 )) |
---|
| 459 | (( resttime = cputime - stunden * 3600 )) |
---|
| 460 | (( minuten = resttime / 60 )) |
---|
| 461 | (( sekunden = resttime - minuten * 60 )) |
---|
| 462 | timestring=${stunden}:${minuten}:${sekunden} |
---|
| 463 | |
---|
| 464 | |
---|
| 465 | |
---|
| 466 | # PRUEFEN DER KERNSPEICHERANFORDERUNG |
---|
| 467 | done=false |
---|
| 468 | while [[ $done = false ]] |
---|
| 469 | do |
---|
| 470 | if (( memory <= 0 )) |
---|
| 471 | then |
---|
| 472 | printf "\n +++ wrong memory demand or memory demand missing" |
---|
| 473 | printf "\n >>> Please type memory in MByte per process as INTEGER:" |
---|
| 474 | printf "\n >>> " |
---|
| 475 | read memory 1>/dev/null 2>&1 |
---|
| 476 | else |
---|
| 477 | done=true |
---|
| 478 | fi |
---|
| 479 | done |
---|
| 480 | |
---|
[251] | 481 | if [[ $remote_host = nech || $remote_host = necriam ]] |
---|
[1] | 482 | then |
---|
| 483 | if (( tasks_per_node != 0 )) |
---|
| 484 | then |
---|
| 485 | (( Memory = memory * tasks_per_node / 1000 )) |
---|
| 486 | elif [[ $numprocs != 0 ]] |
---|
| 487 | then |
---|
| 488 | (( Memory = memory * numprocs / 1000 )) |
---|
| 489 | else |
---|
| 490 | (( Memory = memory / 1000 )) |
---|
| 491 | fi |
---|
[635] | 492 | elif [[ $remote_host = lctit ]] |
---|
| 493 | then |
---|
| 494 | (( Memory = memory * tasks_per_node / 1000 )) |
---|
[1] | 495 | fi |
---|
| 496 | |
---|
| 497 | |
---|
| 498 | # SPEICHERBERECHNUNG BEI OPENMP-NUTZUNG |
---|
| 499 | if [[ $(echo $remote_host | cut -c1-3) = ibm ]] |
---|
| 500 | then |
---|
| 501 | (( memory = memory * threads_per_task )) |
---|
| 502 | fi |
---|
| 503 | |
---|
| 504 | |
---|
| 505 | # BERECHNUNG DER ANZAHL DER ZU VERWENDENDEN KNOTEN |
---|
| 506 | if (( tasks_per_node != 0 )) |
---|
| 507 | then |
---|
[622] | 508 | (( nodes = numprocs / ( tasks_per_node * threads_per_task ) )) |
---|
[1] | 509 | fi |
---|
| 510 | |
---|
[1094] | 511 | |
---|
[622] | 512 | # Calculate number of processes per node |
---|
| 513 | (( processes_per_node = tasks_per_node * threads_per_task )) |
---|
[1] | 514 | |
---|
[1094] | 515 | |
---|
[696] | 516 | # Calculate number of MPI tasks |
---|
| 517 | (( mpi_tasks = numprocs / threads_per_task )) |
---|
[1] | 518 | |
---|
[696] | 519 | |
---|
[1094] | 520 | # Set port number option for calls of ssh/scp, subjob and batch_scp scripts |
---|
| 521 | if [[ "$scp_port" != "" ]] |
---|
| 522 | then |
---|
| 523 | PORTOPT="-P $scp_port" |
---|
| 524 | SSH_PORTOPT="-p $scp_port" |
---|
| 525 | fi |
---|
| 526 | |
---|
| 527 | |
---|
[1] | 528 | # HEADER-AUSGABE |
---|
| 529 | if [[ $verify = true ]] |
---|
| 530 | then |
---|
| 531 | printf "\n\n" |
---|
| 532 | printf "#--------------------------------------------------------------# \n" |
---|
| 533 | spalte1=SUBJOB;spalte2=$(date) |
---|
[1103] | 534 | printf "| %-20s%40s | \n" "$spalte1" "$spalte2" |
---|
[1] | 535 | printf "| | \n" |
---|
| 536 | printf "| values of parameters/options: | \n" |
---|
[1103] | 537 | spalte1=$(echo local_host$punkte | cut -c-20) |
---|
| 538 | spalte2=$punkte$local_host |
---|
| 539 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
| 540 | spalte1=$(echo remote_host$punkte | cut -c-20) |
---|
| 541 | spalte2=$punkte$remote_host |
---|
| 542 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
| 543 | spalte1=$(echo queue$punkte | cut -c-20) |
---|
| 544 | spalte2=$punkte$queue |
---|
| 545 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
| 546 | spalte1=$(echo memory$punkte | cut -c-20) |
---|
| 547 | spalte2="$punkte$memory mb" |
---|
| 548 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
| 549 | spalte1=$(echo cputime$punkte | cut -c-20) |
---|
| 550 | spalte2="$punkte$cputime sec" |
---|
| 551 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
| 552 | spalte1=$(echo job_name$punkte | cut -c-20) |
---|
| 553 | spalte2="$punkte$job_name" |
---|
| 554 | printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" |
---|
[1] | 555 | printf "#--------------------------------------------------------------# \n\n" |
---|
| 556 | |
---|
| 557 | |
---|
| 558 | # KONTROLLABFRAGE, OB ALLES O.K. |
---|
| 559 | antwort="dummy" |
---|
| 560 | while [[ $antwort != y && $antwort != Y && $antwort != n && $antwort != N ]] |
---|
| 561 | do |
---|
| 562 | read antwort?" >>> continue (y/n) ? " |
---|
| 563 | done |
---|
| 564 | if [[ $antwort = n || $antwort = N ]] |
---|
| 565 | then |
---|
| 566 | locat=verify; exit |
---|
| 567 | fi |
---|
| 568 | printf "\n" |
---|
| 569 | fi |
---|
| 570 | |
---|
| 571 | |
---|
| 572 | |
---|
| 573 | # ZUFALLSKENNUNG GENERIEREN UND JOBNAMEN AUF ZIELRECHNER BESTIMMEN |
---|
| 574 | kennung=$RANDOM |
---|
| 575 | job_on_remhost=${job_name}_${kennung}_$local_host |
---|
| 576 | job_to_send=job_to_send_$kennung |
---|
| 577 | if [[ $delete_dayfile = false ]] |
---|
| 578 | then |
---|
| 579 | remote_dayfile=${local_host}_${job_name}_result_$kennung |
---|
| 580 | local_dayfile=${remote_host}_${job_name} |
---|
| 581 | else |
---|
| 582 | remote_dayfile=/dev/null |
---|
| 583 | fi |
---|
| 584 | |
---|
| 585 | |
---|
| 586 | |
---|
[622] | 587 | # Generate the batch job scripts (qsub/msub/LoadLeveler) |
---|
[1] | 588 | if [[ $(echo $remote_host | cut -c1-3) = ibm && $numprocs != 0 ]] |
---|
| 589 | then |
---|
| 590 | |
---|
[622] | 591 | # General LoadLeveler settings |
---|
| 592 | execute_in_shell="#!/bin/ksh" |
---|
| 593 | use_shell="# @ shell = /bin/ksh" |
---|
| 594 | consumable_memory="ConsumableMemory($memory mb)" |
---|
| 595 | class="# @ class = $queue" |
---|
| 596 | environment="# @ environment = OMP_NUM_THREADS=$threads_per_task; MP_SHARED_MEMORY=yes" |
---|
| 597 | network_to_use="# @ network.mpi = sn_all,shared,us" |
---|
| 598 | data_limit="# @ data_limit = 1.76gb" |
---|
| 599 | image_size="# @ image_size = 50" |
---|
[693] | 600 | wall_clock_limit="# @ wall_clock_limit = ${timestring},$timestring" |
---|
[312] | 601 | |
---|
[693] | 602 | if [[ $email_notification = none ]] |
---|
| 603 | then |
---|
| 604 | notify_user="" |
---|
| 605 | else |
---|
| 606 | notify_user="# @ notify_user = $email_notification" |
---|
| 607 | if [[ $delete_dayfile = true ]] |
---|
| 608 | then |
---|
| 609 | notification='# @ notification = never' |
---|
| 610 | fi |
---|
| 611 | fi |
---|
[622] | 612 | |
---|
[312] | 613 | if [[ $remote_host = ibmh ]] |
---|
[1] | 614 | then |
---|
[312] | 615 | data_limit="" |
---|
| 616 | network_to_use="" |
---|
[1184] | 617 | class="# @ class = $queue" |
---|
[312] | 618 | environment="" |
---|
[814] | 619 | rset="# @ rset = RSET_MCM_AFFINITY" |
---|
| 620 | task_affinity="# @ task_affinity = core(1)" |
---|
[693] | 621 | elif [[ $remote_host = ibmkisti ]] |
---|
| 622 | then |
---|
| 623 | network_to_use="# @ network.MPI = sn_all,shared,US" |
---|
| 624 | wall_clock_limit="# @ wall_clock_limit = $timestring" |
---|
[696] | 625 | if [[ $threads_per_task = 1 ]] |
---|
| 626 | then |
---|
| 627 | rset="# @ rset = RSET_MCM_AFFINITY" |
---|
| 628 | mcm_affinity_options="# @ mcm_affinity_options = mcm_mem_pref mcm_sni_none mcm_distribute" |
---|
| 629 | fi |
---|
[693] | 630 | environment="" |
---|
| 631 | use_shell="" |
---|
| 632 | data_limit="" |
---|
| 633 | image_size="" |
---|
[622] | 634 | elif [[ $remote_host = ibmku ]] |
---|
| 635 | then |
---|
| 636 | execute_in_shell="#!/usr/bin/ksh" |
---|
| 637 | use_shell="# @ shell = /usr/bin/ksh" |
---|
| 638 | consumable_memory="" |
---|
| 639 | environment="" |
---|
| 640 | network_to_use="# @ network.mpi = sn_all,shared,us" |
---|
| 641 | data_limit="" |
---|
| 642 | image_size="" |
---|
| 643 | elif [[ $remote_host = ibms ]] |
---|
| 644 | then |
---|
| 645 | network_to_use="# @ network.mpi = csss,shared,us" |
---|
| 646 | elif [[ $remote_host = ibmy ]] |
---|
| 647 | then |
---|
| 648 | consumable_memory="" |
---|
| 649 | network_to_use="" |
---|
[1] | 650 | fi |
---|
| 651 | |
---|
| 652 | cat > $job_to_send << %%END%% |
---|
[622] | 653 | $execute_in_shell |
---|
| 654 | $use_shell |
---|
[1] | 655 | |
---|
| 656 | # @ job_type = parallel |
---|
[693] | 657 | # @ job_name = $job_name |
---|
[1] | 658 | # @ resources = ConsumableCpus($threads_per_task) $consumable_memory |
---|
| 659 | # @ output = $remote_dayfile |
---|
| 660 | # @ error = $remote_dayfile |
---|
[693] | 661 | $wall_clock_limit |
---|
[622] | 662 | $image_size |
---|
[312] | 663 | $class |
---|
| 664 | $environment |
---|
[1] | 665 | $network_to_use |
---|
| 666 | $data_limit |
---|
[693] | 667 | $rset |
---|
| 668 | $mcm_affinity_options |
---|
[814] | 669 | $task_affinity |
---|
[1] | 670 | $notification |
---|
[693] | 671 | $notify_user |
---|
[1] | 672 | |
---|
| 673 | %%END%% |
---|
| 674 | |
---|
| 675 | if (( nodes > 0 )) |
---|
| 676 | then |
---|
| 677 | |
---|
[693] | 678 | if [[ $remote_host != ibmkisti ]] |
---|
| 679 | then |
---|
| 680 | |
---|
| 681 | cat >> $job_to_send << %%END%% |
---|
[1] | 682 | # @ node = $nodes |
---|
[622] | 683 | # @ tasks_per_node = $processes_per_node |
---|
[1] | 684 | # @ node_usage = $node_usage |
---|
| 685 | # @ queue |
---|
| 686 | |
---|
| 687 | %%END%% |
---|
| 688 | |
---|
[693] | 689 | else |
---|
| 690 | |
---|
| 691 | cat >> $job_to_send << %%END%% |
---|
[696] | 692 | # @ total_tasks = $mpi_tasks |
---|
[693] | 693 | # @ blocking = unlimited |
---|
| 694 | # @ queue |
---|
| 695 | |
---|
| 696 | %%END%% |
---|
| 697 | |
---|
| 698 | fi |
---|
| 699 | |
---|
[1] | 700 | else |
---|
| 701 | |
---|
| 702 | if [[ $remote_host != ibmy ]] |
---|
| 703 | then |
---|
| 704 | |
---|
| 705 | cat >> $job_to_send << %%END%% |
---|
| 706 | # @ blocking = unlimited |
---|
| 707 | # @ total_tasks = $numprocs |
---|
| 708 | # @ node_usage = $node_usage |
---|
| 709 | # @ queue |
---|
| 710 | |
---|
| 711 | %%END%% |
---|
| 712 | |
---|
| 713 | else |
---|
| 714 | |
---|
| 715 | cat >> $job_to_send << %%END%% |
---|
| 716 | # @ node = 1 |
---|
| 717 | # @ total_tasks = $numprocs |
---|
| 718 | # @ queue |
---|
| 719 | |
---|
| 720 | %%END%% |
---|
| 721 | |
---|
| 722 | fi |
---|
| 723 | |
---|
| 724 | fi |
---|
| 725 | |
---|
[696] | 726 | # workaround because of silly job filter on ibmkisti |
---|
| 727 | if [[ $remote_host = ibmkisti && $threads_per_task != 1 ]] |
---|
| 728 | then |
---|
| 729 | echo "export OMP_NUM_THREADS=$threads_per_task" >> $job_to_send |
---|
| 730 | fi |
---|
| 731 | |
---|
[1] | 732 | elif [[ $(echo $remote_host | cut -c1-3) = ibm && $numprocs = 0 ]] |
---|
| 733 | then |
---|
| 734 | |
---|
| 735 | cat > $job_to_send << %%END%% |
---|
| 736 | #!/bin/ksh |
---|
| 737 | |
---|
| 738 | # @ job_type = serial |
---|
| 739 | # @ node_usage = $node_usage |
---|
| 740 | # @ job_name = palm |
---|
| 741 | # @ wall_clock_limit = ${timestring},$timestring |
---|
| 742 | # @ resources = ConsumableCpus(1) ConsumableMemory(1 gb) |
---|
| 743 | # @ output = $remote_dayfile |
---|
| 744 | # @ error = $remote_dayfile |
---|
[312] | 745 | $class |
---|
[1] | 746 | $notification |
---|
| 747 | |
---|
| 748 | # @ queue |
---|
| 749 | |
---|
| 750 | %%END%% |
---|
| 751 | |
---|
[108] | 752 | elif [[ $remote_host = lcfimm ]] |
---|
| 753 | then |
---|
| 754 | |
---|
| 755 | if [[ $numprocs != 0 ]] |
---|
| 756 | then |
---|
| 757 | cat > $job_to_send << %%END%% |
---|
| 758 | #!/bin/ksh |
---|
| 759 | #PBS -N $job_name |
---|
[552] | 760 | #PBS -A $project_account |
---|
[108] | 761 | #PBS -l walltime=$timestring |
---|
[622] | 762 | #PBS -l nodes=${nodes}:ppn=$processes_per_node |
---|
[108] | 763 | #PBS -l pmem=${memory}mb |
---|
| 764 | #PBS -m abe |
---|
| 765 | #PBS -o $remote_dayfile |
---|
| 766 | #PBS -j oe |
---|
| 767 | mpd & |
---|
| 768 | |
---|
| 769 | %%END%% |
---|
| 770 | |
---|
[168] | 771 | else |
---|
| 772 | cat > $job_to_send << %%END%% |
---|
| 773 | #!/bin/ksh |
---|
| 774 | #PBS -N $job_name |
---|
[552] | 775 | #PBS -A $project_account |
---|
[168] | 776 | #PBS -l walltime=$timestring |
---|
| 777 | #PBS -l ncpus=1 |
---|
| 778 | #PBS -l pmem=${memory}mb |
---|
| 779 | #PBS -m abe |
---|
| 780 | #PBS -o $remote_dayfile |
---|
| 781 | #PBS -j oe |
---|
| 782 | |
---|
| 783 | %%END%% |
---|
| 784 | |
---|
| 785 | fi |
---|
| 786 | |
---|
[1099] | 787 | elif [[ $remote_host = lcflow ]] |
---|
| 788 | then |
---|
| 789 | if [ $memory -gt 1900 ]; then |
---|
| 790 | use_himem="" |
---|
| 791 | else |
---|
| 792 | use_himem="#" |
---|
| 793 | fi |
---|
| 794 | if [[ $numprocs != 0 ]] |
---|
| 795 | then |
---|
| 796 | pe_set="#$ -pe impi $numprocs" |
---|
| 797 | else |
---|
| 798 | pe_set="#$ -pe impi 1" |
---|
| 799 | fi |
---|
| 800 | if [[ $queue = default ]] |
---|
| 801 | then |
---|
| 802 | queue_set="" |
---|
| 803 | else |
---|
| 804 | queue_set="#$ -q $queue" |
---|
| 805 | fi |
---|
| 806 | [[ "$disc_space" = "" ]] && disc_space=50 |
---|
| 807 | |
---|
| 808 | cat > $job_to_send << %%END%% |
---|
| 809 | #!/bin/bash |
---|
| 810 | #$ -S /bin/bash |
---|
| 811 | #$ -N $job_name |
---|
| 812 | #$ -cwd |
---|
| 813 | #$ -l h_rt=$timestring |
---|
| 814 | #$ -l h_vmem=${memory}M |
---|
| 815 | #$ -o $remote_dayfile |
---|
| 816 | #$ -j y |
---|
| 817 | $pe_set |
---|
| 818 | #$ -R y |
---|
| 819 | ${use_himem}#$ -l highmem=true |
---|
| 820 | #$ -l h_fsize=${disc_space}G |
---|
| 821 | $queue_set |
---|
| 822 | |
---|
| 823 | %%END%% |
---|
| 824 | |
---|
[1021] | 825 | elif [[ $remote_host = lck || $remote_host = lckordi || $remote_host = lcsb ]] |
---|
[368] | 826 | then |
---|
| 827 | |
---|
| 828 | if [[ $numprocs != 0 ]] |
---|
| 829 | then |
---|
| 830 | cat > $job_to_send << %%END%% |
---|
| 831 | #!/bin/ksh |
---|
| 832 | #PBS -N $job_name |
---|
| 833 | #PBS -l walltime=$timestring |
---|
| 834 | #PBS -l ncpus=$numprocs |
---|
| 835 | #PBS -l pmem=${memory}mb |
---|
| 836 | #PBS -o $remote_dayfile |
---|
[1021] | 837 | #PBS -l nodes=$nodes:ppn=${processes_per_node} |
---|
[368] | 838 | #PBS -j oe |
---|
| 839 | |
---|
| 840 | mpd & |
---|
| 841 | |
---|
| 842 | %%END%% |
---|
| 843 | |
---|
| 844 | else |
---|
| 845 | cat > $job_to_send << %%END%% |
---|
| 846 | #!/bin/ksh |
---|
| 847 | #PBS -N $job_name |
---|
| 848 | #PBS -l walltime=$timestring |
---|
| 849 | #PBS -l ncpus=1 |
---|
| 850 | #PBS -l pmem=${memory}mb |
---|
| 851 | #PBS -o $remote_dayfile |
---|
| 852 | #PBS -j oe |
---|
| 853 | |
---|
| 854 | %%END%% |
---|
| 855 | |
---|
| 856 | fi |
---|
| 857 | |
---|
[1040] | 858 | elif [[ $remote_host = lckiaps ]] |
---|
| 859 | then |
---|
| 860 | |
---|
| 861 | if [[ $numprocs != 0 ]] |
---|
| 862 | then |
---|
| 863 | cat > $job_to_send << %%END%% |
---|
| 864 | #!/bin/ksh |
---|
| 865 | #PBS -N $job_name |
---|
| 866 | #PBS -l walltime=$timestring |
---|
| 867 | #PBS -l select=1:ncpus=$numprocs |
---|
| 868 | #PBS -l pmem=${memory}mb |
---|
| 869 | #PBS -q $queue |
---|
| 870 | #PBS -o $remote_dayfile |
---|
| 871 | #PBS -j oe |
---|
| 872 | #PBS -V |
---|
| 873 | |
---|
| 874 | %%END%% |
---|
| 875 | |
---|
| 876 | else |
---|
| 877 | cat > $job_to_send << %%END%% |
---|
| 878 | #!/bin/ksh |
---|
| 879 | #PBS -N $job_name |
---|
| 880 | #PBS -l walltime=$timestring |
---|
| 881 | #PBS -l ncpus=1 |
---|
| 882 | #PBS -l pmem=${memory}mb |
---|
| 883 | #PBS -o $remote_dayfile |
---|
| 884 | #PBS -j oe |
---|
| 885 | |
---|
| 886 | %%END%% |
---|
| 887 | |
---|
| 888 | fi |
---|
| 889 | |
---|
[693] | 890 | elif [[ $remote_host = lcyon ]] |
---|
| 891 | then |
---|
| 892 | |
---|
| 893 | if [[ $numprocs != 0 ]] |
---|
| 894 | then |
---|
| 895 | cat > $job_to_send << %%END%% |
---|
| 896 | #!/bin/ksh |
---|
| 897 | #PBS -N $job_name |
---|
| 898 | #PBS -l walltime=$timestring |
---|
| 899 | #PBS -l ncpus=$numprocs |
---|
| 900 | #PBS -l pmem=${memory}mb |
---|
| 901 | #PBS -o $remote_dayfile |
---|
| 902 | #PBS -j oe |
---|
| 903 | |
---|
| 904 | %%END%% |
---|
| 905 | |
---|
| 906 | else |
---|
| 907 | cat > $job_to_send << %%END%% |
---|
| 908 | #!/bin/ksh |
---|
| 909 | #PBS -N $job_name |
---|
| 910 | #PBS -l walltime=$timestring |
---|
| 911 | #PBS -l ncpus=1 |
---|
| 912 | #PBS -l pmem=${memory}mb |
---|
| 913 | #PBS -o $remote_dayfile |
---|
| 914 | #PBS -j oe |
---|
| 915 | |
---|
| 916 | %%END%% |
---|
| 917 | |
---|
| 918 | fi |
---|
| 919 | |
---|
[181] | 920 | elif [[ $remote_host = lcsgih || $remote_host = lcsgib ]] |
---|
[179] | 921 | then |
---|
| 922 | |
---|
[376] | 923 | if [[ "$sgi_feature" != "" ]] |
---|
| 924 | then |
---|
| 925 | feature_directive="#PBS -l feature=$sgi_feature" |
---|
| 926 | else |
---|
| 927 | feature_directive="" |
---|
| 928 | fi |
---|
[799] | 929 | |
---|
[416] | 930 | if [[ $queue = dataq || $queue = permq ]] |
---|
[399] | 931 | then |
---|
| 932 | feature_directive="#PBS -l feature=data" |
---|
| 933 | fi |
---|
[376] | 934 | |
---|
[789] | 935 | if [[ $queue = testq || $queue = mediumq || $queue = bigq || $queue = workq || $queue = dataq || $queue = permq || $queue = serialq || $queue = special1q ]] |
---|
[191] | 936 | then |
---|
| 937 | queue_directive="#PBS -q $queue" |
---|
| 938 | else |
---|
| 939 | queue_directive="" |
---|
| 940 | fi |
---|
| 941 | |
---|
[352] | 942 | if [[ $email_notification = none ]] |
---|
| 943 | then |
---|
| 944 | email_directive="" |
---|
| 945 | else |
---|
| 946 | email_directive="#PBS -M $email_notification" |
---|
| 947 | fi |
---|
| 948 | |
---|
[179] | 949 | if [[ $numprocs != 0 ]] |
---|
| 950 | then |
---|
| 951 | cat > $job_to_send << %%END%% |
---|
[181] | 952 | #!/bin/bash |
---|
[179] | 953 | #PBS -N $job_name |
---|
| 954 | #PBS -l walltime=$timestring |
---|
[622] | 955 | #PBS -l nodes=$nodes:ppn=${processes_per_node} |
---|
[181] | 956 | #PBS -l naccesspolicy=$node_usage |
---|
[179] | 957 | #PBS -o $remote_dayfile |
---|
| 958 | #PBS -j oe |
---|
[376] | 959 | $feature_directive |
---|
[191] | 960 | $queue_directive |
---|
[352] | 961 | $email_directive |
---|
[179] | 962 | |
---|
[622] | 963 | eval \`/sw/swdist/bin/modulesinit\` |
---|
| 964 | #. /usr/share/modules/init/bash |
---|
[892] | 965 | $init_cmds |
---|
[493] | 966 | $module_calls |
---|
[374] | 967 | |
---|
[181] | 968 | echo ld_library_path=\$LD_LIBRARY_PATH |
---|
[179] | 969 | |
---|
| 970 | %%END%% |
---|
| 971 | |
---|
| 972 | else |
---|
| 973 | cat > $job_to_send << %%END%% |
---|
| 974 | #PBS -S /bin/bash |
---|
| 975 | #PBS -N $job_name |
---|
| 976 | #PBS -l walltime=$timestring |
---|
| 977 | #PBS -l ncpus=1 |
---|
| 978 | #PBS -o $remote_dayfile |
---|
[475] | 979 | #PBS -j oe |
---|
[400] | 980 | $queue_directive |
---|
| 981 | $email_directive |
---|
[179] | 982 | |
---|
[622] | 983 | eval \`/sw/swdist/bin/modulesinit\` |
---|
| 984 | #. /usr/share/modules/init/bash |
---|
[892] | 985 | $init_cmds |
---|
[493] | 986 | $module_calls |
---|
[475] | 987 | |
---|
[179] | 988 | %%END%% |
---|
| 989 | |
---|
| 990 | fi |
---|
| 991 | |
---|
[892] | 992 | elif [[ $remote_host = lcxe6 ]] |
---|
[164] | 993 | then |
---|
| 994 | |
---|
| 995 | if [[ $numprocs != 0 ]] |
---|
| 996 | then |
---|
| 997 | cat > $job_to_send << %%END%% |
---|
[799] | 998 | #!/bin/ksh |
---|
[164] | 999 | #PBS -S /bin/ksh |
---|
| 1000 | #PBS -N $job_name |
---|
[552] | 1001 | #PBS -A $project_account |
---|
[206] | 1002 | #PBS -j oe |
---|
[164] | 1003 | #PBS -l walltime=$timestring |
---|
| 1004 | #PBS -l mppwidth=${numprocs} |
---|
[622] | 1005 | #PBS -l mppnppn=${processes_per_node} |
---|
[164] | 1006 | #PBS -m abe |
---|
| 1007 | #PBS -o $remote_dayfile |
---|
[492] | 1008 | $email_directive |
---|
[164] | 1009 | |
---|
[892] | 1010 | $init_cmds |
---|
[493] | 1011 | $module_calls |
---|
[343] | 1012 | |
---|
[164] | 1013 | %%END%% |
---|
| 1014 | |
---|
[108] | 1015 | else |
---|
| 1016 | cat > $job_to_send << %%END%% |
---|
| 1017 | #!/bin/ksh |
---|
[168] | 1018 | #PBS -S /bin/ksh |
---|
[108] | 1019 | #PBS -N $job_name |
---|
[552] | 1020 | #PBS -A $project_account |
---|
[206] | 1021 | #PBS -j oe |
---|
[108] | 1022 | #PBS -l walltime=$timestring |
---|
| 1023 | #PBS -l ncpus=1 |
---|
| 1024 | #PBS -l pmem=${memory}mb |
---|
| 1025 | #PBS -m abe |
---|
[492] | 1026 | $email_directive |
---|
[108] | 1027 | #PBS -o $remote_dayfile |
---|
| 1028 | |
---|
[892] | 1029 | $init_cmds |
---|
[493] | 1030 | $module_calls |
---|
[343] | 1031 | |
---|
[108] | 1032 | %%END%% |
---|
| 1033 | |
---|
| 1034 | fi |
---|
| 1035 | |
---|
[440] | 1036 | elif [[ $remote_host = lckyoto ]] |
---|
[437] | 1037 | then |
---|
| 1038 | |
---|
[440] | 1039 | cat > $job_to_send << %%END%% |
---|
[799] | 1040 | #!/bin/ksh |
---|
[440] | 1041 | # @\$-o $remote_dayfile |
---|
| 1042 | # @\$-eo -oi |
---|
| 1043 | # @\$-lP 16 |
---|
[799] | 1044 | # @\$-lp 1 |
---|
[440] | 1045 | # @\$-lm 28gb -llm unlimited -ls unlimited |
---|
| 1046 | # @\$-q $queue |
---|
| 1047 | # @\$-Pvn abs_pack |
---|
| 1048 | ##for intel? @\$-Pvn abs_unpack -Pvs unpack -Pvc unpack |
---|
| 1049 | #. /thin/local/etc/setprofile/intel-11.0.sh |
---|
| 1050 | #. /thin/local/etc/setprofile/mvapich2-1.4+intel-11.0.sh |
---|
| 1051 | . ~/.myprofile |
---|
| 1052 | #. /home2/t/t51254/palm/current_version/myprofile |
---|
| 1053 | #. /thin/apps/pgi/mpi.sh |
---|
| 1054 | # |
---|
| 1055 | env |
---|
| 1056 | # |
---|
| 1057 | set -x |
---|
| 1058 | |
---|
| 1059 | %%END%% |
---|
| 1060 | |
---|
| 1061 | elif [[ $remote_host = lcxt5m ]] |
---|
| 1062 | then |
---|
| 1063 | |
---|
[437] | 1064 | if [[ $numprocs != 0 ]] |
---|
| 1065 | then |
---|
| 1066 | cat > $job_to_send << %%END%% |
---|
[799] | 1067 | #!/bin/ksh |
---|
[437] | 1068 | #PBS -S /bin/ksh |
---|
| 1069 | #PBS -N $job_name |
---|
| 1070 | #PBS -j oe |
---|
| 1071 | #PBS -l walltime=$timestring |
---|
| 1072 | #PBS -l mppwidth=${numprocs} |
---|
[622] | 1073 | #PBS -l mppnppn=${processes_per_node} |
---|
[437] | 1074 | #PBS -m abe |
---|
| 1075 | #PBS -o $remote_dayfile |
---|
| 1076 | |
---|
[892] | 1077 | $init_cmds |
---|
[493] | 1078 | $module_calls |
---|
[437] | 1079 | |
---|
| 1080 | %%END%% |
---|
| 1081 | |
---|
| 1082 | else |
---|
| 1083 | cat > $job_to_send << %%END%% |
---|
| 1084 | #!/bin/ksh |
---|
| 1085 | #PBS -S /bin/ksh |
---|
| 1086 | #PBS -N $job_name |
---|
| 1087 | #PBS -j oe |
---|
| 1088 | #PBS -l walltime=$timestring |
---|
| 1089 | #PBS -l ncpus=1 |
---|
| 1090 | #PBS -l pmem=${memory}mb |
---|
| 1091 | #PBS -m abe |
---|
| 1092 | #PBS -o $remote_dayfile |
---|
| 1093 | |
---|
[892] | 1094 | $init_cmds |
---|
[493] | 1095 | $module_calls |
---|
[437] | 1096 | |
---|
| 1097 | %%END%% |
---|
| 1098 | |
---|
| 1099 | fi |
---|
| 1100 | |
---|
[1099] | 1101 | elif [[ $remote_host = lckyuh ]] |
---|
| 1102 | then |
---|
| 1103 | cat > $job_to_send << %%END%% |
---|
| 1104 | #!/bin/bash |
---|
| 1105 | #PJM -L "rscgrp=$queue" |
---|
| 1106 | #PJM -L "node=$nodes" |
---|
| 1107 | #PJM --mpi "proc=$numprocs" |
---|
| 1108 | #PJM -L "elapse=$timestring" |
---|
| 1109 | #PJM -o $remote_dayfile |
---|
| 1110 | #PJM -j |
---|
| 1111 | #PJM -X |
---|
| 1112 | #PJM --no-stging |
---|
| 1113 | |
---|
| 1114 | export LANG=en_US.UTF-8 |
---|
| 1115 | %%END%% |
---|
| 1116 | |
---|
[1090] | 1117 | elif [[ $remote_host = lckyut ]] |
---|
| 1118 | then |
---|
| 1119 | cat > $job_to_send << %%END%% |
---|
| 1120 | #!/bin/bash |
---|
[1099] | 1121 | #PJM -L "rscgrp=$queue" |
---|
[1090] | 1122 | #PJM -L "vnode=$numprocs" |
---|
| 1123 | #PJM -L "vnode-core=1" |
---|
| 1124 | #PJM -L "elapse=$timestring" |
---|
| 1125 | #PJM --mpi proc=$numprocs |
---|
| 1126 | #PJM -o $remote_dayfile |
---|
| 1127 | #PJM -j |
---|
[1099] | 1128 | #PJM -X |
---|
| 1129 | #PJM --no-stging |
---|
[1090] | 1130 | |
---|
| 1131 | export LANG=en_US.UTF-8 |
---|
| 1132 | %%END%% |
---|
| 1133 | |
---|
[1] | 1134 | elif [[ $remote_host = nech ]] |
---|
| 1135 | then |
---|
| 1136 | |
---|
| 1137 | if (( nodes > 1 )) |
---|
| 1138 | then |
---|
| 1139 | cat > $job_to_send << %%END%% |
---|
| 1140 | #!/bin/ksh |
---|
[622] | 1141 | #PBS -l cpunum_prc=$processes_per_node,cputim_job=$cputime |
---|
[1] | 1142 | #PBS -l ${qsubmem}=${Memory}gb |
---|
| 1143 | #PBS -b $nodes |
---|
| 1144 | #PBS -o $remote_dayfile |
---|
| 1145 | #PBS -N palm |
---|
| 1146 | #PBS -j o |
---|
| 1147 | #PBS -T mpisx |
---|
| 1148 | |
---|
| 1149 | %%END%% |
---|
| 1150 | |
---|
| 1151 | elif [[ $numprocs != 0 ]] |
---|
| 1152 | then |
---|
| 1153 | cat > $job_to_send << %%END%% |
---|
| 1154 | #!/bin/ksh |
---|
[622] | 1155 | #PBS -l cpunum_prc=$processes_per_node,cputim_job=$cputime |
---|
[1] | 1156 | #PBS -l ${qsubmem}=${Memory}gb |
---|
| 1157 | #PBS -o $remote_dayfile |
---|
| 1158 | #PBS -N palm |
---|
| 1159 | #PBS -j o |
---|
| 1160 | |
---|
| 1161 | %%END%% |
---|
| 1162 | |
---|
| 1163 | else |
---|
| 1164 | cat > $job_to_send << %%END%% |
---|
| 1165 | #!/bin/ksh |
---|
| 1166 | #PBS -l ${qsubmem}=${Memory}gb,${qsubtime}=$cputime |
---|
| 1167 | #PBS -o $remote_dayfile |
---|
| 1168 | #PBS -j o |
---|
| 1169 | |
---|
| 1170 | %%END%% |
---|
| 1171 | |
---|
| 1172 | fi |
---|
| 1173 | |
---|
[251] | 1174 | elif [[ $remote_host = necriam ]] |
---|
[35] | 1175 | then |
---|
| 1176 | |
---|
| 1177 | if (( nodes > 1 )) |
---|
| 1178 | then |
---|
| 1179 | cat > $job_to_send << %%END%% |
---|
| 1180 | #!/bin/ksh |
---|
| 1181 | #PBS -b $nodes |
---|
| 1182 | #PBS -o $remote_dayfile |
---|
[253] | 1183 | #PBS -N $job_name |
---|
[35] | 1184 | #PBS -j o |
---|
[251] | 1185 | #PBS -v MPIPROGINV=YES |
---|
[35] | 1186 | |
---|
| 1187 | %%END%% |
---|
| 1188 | |
---|
| 1189 | elif [[ $numprocs != 0 ]] |
---|
| 1190 | then |
---|
| 1191 | cat > $job_to_send << %%END%% |
---|
| 1192 | #!/bin/ksh |
---|
| 1193 | #PBS -q ${queue} |
---|
| 1194 | #PBS -o $remote_dayfile |
---|
[253] | 1195 | #PBS -N $job_name |
---|
[35] | 1196 | #PBS -j o |
---|
[251] | 1197 | #PBS -v MPIPROGINV=YES |
---|
[35] | 1198 | |
---|
| 1199 | %%END%% |
---|
| 1200 | |
---|
| 1201 | else |
---|
| 1202 | cat > $job_to_send << %%END%% |
---|
| 1203 | #!/bin/ksh |
---|
| 1204 | #PBS -o $remote_dayfile |
---|
| 1205 | #PBS -j o |
---|
| 1206 | |
---|
| 1207 | %%END%% |
---|
| 1208 | |
---|
| 1209 | fi |
---|
| 1210 | |
---|
[1] | 1211 | elif [[ $remote_host = lctit ]] |
---|
| 1212 | then |
---|
| 1213 | cat > $job_to_send << %%END%% |
---|
[635] | 1214 | #!/bin/ksh |
---|
[892] | 1215 | $init_cmds |
---|
[678] | 1216 | $module_calls |
---|
| 1217 | |
---|
[1] | 1218 | %%END%% |
---|
| 1219 | |
---|
| 1220 | # OPTIONEN FUER SUBMIT-KOMMANDO ZUSAMMENSTELLEN |
---|
[678] | 1221 | if [[ $tasks_per_node != $processes_per_node ]] |
---|
| 1222 | then |
---|
| 1223 | submcom="$submcom -W group_list=$group_number -N $job_name -l walltime=$timestring -l select=$nodes:ncpus=$processes_per_node:mpiprocs=$tasks_per_node:mem=${Memory}gb -o $remote_dayfile -j oe -q $queue " |
---|
| 1224 | else |
---|
| 1225 | submcom="$submcom -W group_list=$group_number -N $job_name -l walltime=$timestring -l select=$nodes:ncpus=$processes_per_node:mpiprocs=$tasks_per_node:mem=${Memory}gb -l place=scatter -o $remote_dayfile -j oe -q $queue " |
---|
| 1226 | fi |
---|
[1] | 1227 | |
---|
| 1228 | else |
---|
| 1229 | |
---|
| 1230 | cat > $job_to_send << %%END%% |
---|
| 1231 | # @\$-q ${queue} |
---|
| 1232 | # @\$-l${qsubtime} $timestring |
---|
| 1233 | # @\$-l${qsubmem} ${memory}mb |
---|
| 1234 | # @\$-o $remote_dayfile |
---|
| 1235 | # @\$-eo |
---|
| 1236 | |
---|
| 1237 | %%END%% |
---|
| 1238 | |
---|
| 1239 | fi |
---|
| 1240 | |
---|
| 1241 | |
---|
| 1242 | # BEI RECHNUNG AUF REMOTE-MASCHINEN RUECKTRANSFER DES DAYFILES PER TRAP |
---|
| 1243 | # BEI EXIT VERANLASSEN |
---|
| 1244 | # VEKTORRECHNER MUSS EIGENEN JOB STARTEN, DA DORT NOHUP NICHT FUNKTIONIERT |
---|
| 1245 | # AUF IBM IN SEOUL IST RUECKTRANSFER ZUR ZEIT GENERELL NICHT MOEGLICH |
---|
| 1246 | if [[ $delete_dayfile = false && $remote_host != $local_host ]] |
---|
| 1247 | then |
---|
| 1248 | echo "set +vx" >> $job_to_send |
---|
| 1249 | echo "trap '" >> $job_to_send |
---|
| 1250 | echo "set +vx" >> $job_to_send |
---|
[1099] | 1251 | if [[ $(echo $remote_host | cut -c1-3) = ibm || $(echo $remote_host | cut -c1-5) = lcsgi || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* ]] |
---|
[1] | 1252 | then |
---|
[622] | 1253 | if [[ $remote_host = ibmh ]] |
---|
[1] | 1254 | then |
---|
| 1255 | return_queue=c1 |
---|
[693] | 1256 | elif [[ $remote_host = ibmkisti ]] |
---|
| 1257 | then |
---|
| 1258 | return_queue=class.1-2 |
---|
[622] | 1259 | elif [[ $remote_host = ibmku ]] |
---|
| 1260 | then |
---|
| 1261 | return_queue=sdbg2 |
---|
[1] | 1262 | elif [[ $remote_host = ibms ]] |
---|
| 1263 | then |
---|
| 1264 | return_queue=p_normal |
---|
| 1265 | elif [[ $remote_host = ibmy ]] |
---|
| 1266 | then |
---|
| 1267 | return_queue=serial |
---|
[325] | 1268 | elif [[ $remote_host = lcsgih || $remote_host = lcsgib ]] |
---|
| 1269 | then |
---|
[326] | 1270 | return_queue=serialq |
---|
[251] | 1271 | elif [[ $remote_host = necriam ]] |
---|
[1] | 1272 | then |
---|
[253] | 1273 | return_queue=SP |
---|
[1040] | 1274 | elif [[ $remote_host = lckiaps ]] |
---|
| 1275 | then |
---|
| 1276 | return_queue=express |
---|
[1099] | 1277 | elif [[ $remote_host = lckyuh ]] |
---|
| 1278 | then |
---|
| 1279 | return_queue=cx-single |
---|
[1090] | 1280 | elif [[ $remote_host = lckyut ]] |
---|
| 1281 | then |
---|
| 1282 | return_queue=cx-single |
---|
[1] | 1283 | else |
---|
| 1284 | return_queue=unknown |
---|
| 1285 | fi |
---|
| 1286 | |
---|
| 1287 | if [[ $(echo $remote_host | cut -c1-3) = ibm ]] |
---|
| 1288 | then |
---|
| 1289 | |
---|
[622] | 1290 | if [[ $remote_host = ibmku ]] |
---|
| 1291 | then |
---|
| 1292 | echo "echo \"#!/usr/bin/ksh\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1293 | echo "echo \"# @ shell = /usr/bin/ksh\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1294 | else |
---|
| 1295 | echo "echo \"#!/bin/ksh\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1296 | fi |
---|
[1] | 1297 | echo "echo \"# @ job_type = serial\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1298 | echo "echo \"# @ job_name = transfer\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1299 | echo "echo \"# @ resources = ConsumableCpus(1) ConsumableMemory(1 gb)\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1300 | echo "echo \"# @ wall_clock_limit = 00:10:00,00:10:00\" >> scpjob.$kennung " >> $job_to_send |
---|
| 1301 | echo "echo \"# @ output = job_queue/last_job_transfer_protocol\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1302 | echo "echo \"# @ error = job_queue/last_job_transfer_protocol\" >> scpjob.$kennung" >> $job_to_send |
---|
[312] | 1303 | if [[ $host != "ibmh" ]] |
---|
| 1304 | then |
---|
| 1305 | echo "echo \"# @ class = $return_queue\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1306 | fi |
---|
[1] | 1307 | echo "echo \"# @ image_size = 10\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1308 | echo "echo \"# @ notification = never\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1309 | |
---|
| 1310 | echo "echo \"# @ queue\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1311 | echo "echo \" \" >> scpjob.$kennung" >> $job_to_send |
---|
| 1312 | |
---|
| 1313 | echo "echo \"set -x\" >> scpjob.$kennung" >> $job_to_send |
---|
[1094] | 1314 | echo "echo \"batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \\\"$job_catalog\\\" $local_dayfile\" >> scpjob.$kennung" >> $job_to_send |
---|
[622] | 1315 | if [[ $remote_host = ibmku ]] |
---|
| 1316 | then |
---|
| 1317 | echo "echo \"rm scpjob.$kennung\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1318 | fi |
---|
[1] | 1319 | echo "echo \"exit\" >> scpjob.$kennung" >> $job_to_send |
---|
| 1320 | |
---|
| 1321 | elif [[ $remote_host = nech ]] |
---|
| 1322 | then |
---|
| 1323 | echo "cd /pf/b/${remote_user}/job_queue" >> $job_to_send |
---|
| 1324 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1325 | echo "#PBS -l ${qsubmem}=1GB,${qsubtime}=100" >> $job_to_send |
---|
| 1326 | echo "#PBS -o last_job_transfer_protocol" >> $job_to_send |
---|
| 1327 | echo "#PBS -j o" >> $job_to_send |
---|
| 1328 | echo " " >> $job_to_send |
---|
| 1329 | echo "set -x" >> $job_to_send |
---|
| 1330 | echo "cd /pf/b/${remote_user}/job_queue" >> $job_to_send |
---|
[1094] | 1331 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
[1] | 1332 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1333 | echo "%%END%%" >> $job_to_send |
---|
| 1334 | |
---|
[251] | 1335 | elif [[ $remote_host = necriam ]] |
---|
[35] | 1336 | then |
---|
| 1337 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1338 | echo "#PBS -q $return_queue" >> $job_to_send |
---|
| 1339 | echo "#PBS -o last_job_transfer_protocol" >> $job_to_send |
---|
| 1340 | echo "#PBS -j o" >> $job_to_send |
---|
| 1341 | echo " " >> $job_to_send |
---|
| 1342 | echo "set -x" >> $job_to_send |
---|
[1094] | 1343 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
[35] | 1344 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1345 | echo "%%END%%" >> $job_to_send |
---|
| 1346 | |
---|
[1099] | 1347 | elif [[ $remote_host = lckyuh ]] |
---|
| 1348 | then |
---|
| 1349 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1350 | echo "#!/bin/bash" >> $job_to_send |
---|
| 1351 | echo "#PJM -L \"node=1\"" >> $job_to_send |
---|
| 1352 | echo "#PJM -L \"rscgrp=$return_queue\"" >> $job_to_send |
---|
| 1353 | echo "#PJM --no-stging" >> $job_to_send |
---|
| 1354 | echo "#PJM -L \"elapse=30:00\"" >> $job_to_send |
---|
| 1355 | echo "#PJM -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send |
---|
| 1356 | echo "#PJM -j" >> $job_to_send |
---|
| 1357 | echo " " >> $job_to_send |
---|
| 1358 | echo "export LANG=en_US.UTF-8" >> $job_to_send |
---|
| 1359 | echo "set -x" >> $job_to_send |
---|
| 1360 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
| 1361 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1362 | echo "%%END%%" >> $job_to_send |
---|
| 1363 | |
---|
[1090] | 1364 | elif [[ $remote_host = lckyut ]] |
---|
| 1365 | then |
---|
| 1366 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1367 | echo "#!/bin/bash" >> $job_to_send |
---|
| 1368 | echo "#PJM -L \"vnode=1\"" >> $job_to_send |
---|
| 1369 | echo "#PJM -L \"rscgrp=$return_queue\"" >> $job_to_send |
---|
| 1370 | echo "#PJM --no-stging" >> $job_to_send |
---|
| 1371 | echo "#PJM -L \"elapse=30:00\"" >> $job_to_send |
---|
| 1372 | echo "#PJM -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send |
---|
| 1373 | echo "#PJM -j" >> $job_to_send |
---|
| 1374 | echo " " >> $job_to_send |
---|
| 1375 | echo "export LANG=en_US.UTF-8" >> $job_to_send |
---|
| 1376 | echo "set -x" >> $job_to_send |
---|
[1094] | 1377 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
[1090] | 1378 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1379 | echo "%%END%%" >> $job_to_send |
---|
| 1380 | |
---|
[181] | 1381 | elif [[ $(echo $remote_host | cut -c1-5) = lcsgi ]] |
---|
| 1382 | then |
---|
| 1383 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1384 | echo "#!/bin/bash" >> $job_to_send |
---|
| 1385 | echo "#PBS -N job_protocol_transfer" >> $job_to_send |
---|
[325] | 1386 | echo "#PBS -l walltime=00:30:00" >> $job_to_send |
---|
[181] | 1387 | echo "#PBS -l nodes=1:ppn=1" >> $job_to_send |
---|
[366] | 1388 | echo "#PBS -l feature=data" >> $job_to_send |
---|
[181] | 1389 | echo "#PBS -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send |
---|
| 1390 | echo "#PBS -j oe" >> $job_to_send |
---|
| 1391 | echo " " >> $job_to_send |
---|
| 1392 | echo ". /usr/share/modules/init/bash" >> $job_to_send |
---|
| 1393 | echo "set -x" >> $job_to_send |
---|
[1094] | 1394 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
[181] | 1395 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1396 | echo "%%END%%" >> $job_to_send |
---|
| 1397 | |
---|
[1099] | 1398 | elif [[ $remote_host = lcflow ]] |
---|
| 1399 | then |
---|
| 1400 | echo "cat > scpjob.${kennung}.tmp << %%END%%" >> $job_to_send |
---|
| 1401 | echo "#!/bin/bash" >> $job_to_send |
---|
| 1402 | echo "SGEPREFIX -S /bin/bash" >> $job_to_send |
---|
| 1403 | echo "SGEPREFIX -N transfer_$job_name" >> $job_to_send |
---|
| 1404 | echo "SGEPREFIX -cwd" >> $job_to_send |
---|
| 1405 | echo "SGEPREFIX -l h_rt=01:00:00" >> $job_to_send |
---|
| 1406 | echo "SGEPREFIX -l h_vmem=100M" >> $job_to_send |
---|
| 1407 | echo "SGEPREFIX -j y" >> $job_to_send |
---|
| 1408 | echo "SGEPREFIX -o ${local_host}_${job_name}_scpjob_$kennung" >> $job_to_send |
---|
| 1409 | echo " " >> $job_to_send |
---|
| 1410 | echo "set -x" >> $job_to_send |
---|
| 1411 | echo "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:' >> $job_to_send |
---|
| 1412 | echo "export PATH=\$PATH:\$PALM_BIN" >> $job_to_send |
---|
| 1413 | echo "" >> $job_to_send |
---|
| 1414 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
| 1415 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1416 | echo "rm -f scpjob.${kennung}" >> $job_to_send |
---|
| 1417 | echo "%%END%%" >> $job_to_send |
---|
| 1418 | echo "sed -e 's/SGEPREFIX/#$/g' scpjob.${kennung}.tmp > scpjob.${kennung}" >> $job_to_send |
---|
| 1419 | echo "rm -f scpjob.${kennung}.tmp" >> $job_to_send |
---|
| 1420 | |
---|
[1] | 1421 | else |
---|
| 1422 | |
---|
| 1423 | echo "cat > scpjob.$kennung << %%END%%" >> $job_to_send |
---|
| 1424 | echo "# @\\\$-q $return_queue" >> $job_to_send |
---|
| 1425 | echo "# @\\\$-l${qsubtime} 10" >> $job_to_send |
---|
| 1426 | echo "# @\\\$-l${qsubmem} 10mb" >> $job_to_send |
---|
| 1427 | if [[ $remote_host = t3ej2 || $remote_host = t3ej5 || $remote_host = t3es ]] |
---|
| 1428 | then |
---|
| 1429 | echo "# @\$-l mpp_p=0" >> $job_to_send |
---|
| 1430 | fi |
---|
| 1431 | echo '# @\$-lF 10mb' >> $job_to_send |
---|
| 1432 | # echo '# @\$-o /dev/null' >> $job_to_send |
---|
| 1433 | echo '# @\$-o job_queue/last_job_transfer_protocol' >> $job_to_send |
---|
| 1434 | echo '# @\\\$-eo' >> $job_to_send |
---|
| 1435 | echo " " >> $job_to_send |
---|
| 1436 | if [[ $remote_host = t3ej2 || $remote_host = t3ej5 ]] |
---|
| 1437 | then |
---|
| 1438 | echo "set +vx" >> $job_to_send |
---|
| 1439 | echo ". .profile" >> $job_to_send |
---|
| 1440 | fi |
---|
| 1441 | echo "set -x" >> $job_to_send |
---|
[1094] | 1442 | echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null" >> $job_to_send |
---|
[1] | 1443 | echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send |
---|
| 1444 | echo "%%END%%" >> $job_to_send |
---|
| 1445 | fi |
---|
| 1446 | |
---|
| 1447 | if [[ $(echo $remote_host | cut -c1-3) = ibm ]] |
---|
| 1448 | then |
---|
| 1449 | echo "llsubmit scpjob.$kennung" >> $job_to_send |
---|
[181] | 1450 | elif [[ $(echo $remote_host | cut -c1-5) = lcsgi ]] |
---|
| 1451 | then |
---|
[748] | 1452 | echo "rm -rf \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send |
---|
| 1453 | echo "chmod u+x scpjob.$kennung" >> $job_to_send |
---|
| 1454 | echo "msub scpjob.$kennung" >> $job_to_send |
---|
[1] | 1455 | elif [[ $remote_host = t3eb || $remote_host = t3eh || $remote_host = t3ej2 || $remote_host = t3ej5 ]] |
---|
| 1456 | then |
---|
| 1457 | echo "qsub -J n scpjob.$kennung" >> $job_to_send |
---|
| 1458 | elif [[ $remote_host = t3es ]] |
---|
| 1459 | then |
---|
| 1460 | echo "qsub -J n -s /bin/ksh scpjob.$kennung" >> $job_to_send |
---|
[1043] | 1461 | elif [[ $remote_host = lckiaps ]] |
---|
| 1462 | then |
---|
| 1463 | echo "mv scpjob.$kennung $job_catalog" >> $job_to_send |
---|
[1094] | 1464 | echo "ssh $SSH_PORTOPT ${remote_username}@${remote_addres} \"$submcom ${job_catalog}/scpjob.$kennung\" " >> $job_to_send |
---|
[1043] | 1465 | echo "rm ${job_catalog}/scpjob.$kennung" >> $job_to_send |
---|
[1099] | 1466 | elif [[ $remote_host = lckyu* ]] |
---|
[1090] | 1467 | then |
---|
[1094] | 1468 | echo "scp $PORTOPT scpjob.$kennung ${remote_username}@${remote_addres}:job_queue" >> $job_to_send |
---|
| 1469 | echo "ssh $SSH_PORTOPT ${remote_username}@${remote_addres} \"cd job_queue; $submcom scpjob.$kennung; rm scpjob.$kennung\" " >> $job_to_send |
---|
[1099] | 1470 | elif [[ $remote_host = lcflow ]] |
---|
| 1471 | then |
---|
| 1472 | echo "mv scpjob.$kennung $job_catalog" >> $job_to_send |
---|
| 1473 | echo "ssh ${remote_username}@${remote_addres} \"$init_cmds $module_calls cd $job_catalog; $submcom scpjob.$kennung\" " >> $job_to_send |
---|
[1] | 1474 | else |
---|
[1040] | 1475 | echo "$submcom scpjob.$kennung" >> $job_to_send |
---|
[1] | 1476 | fi |
---|
[1043] | 1477 | if [[ $remote_host != ibmku && $remote_host != lckiaps ]] |
---|
[622] | 1478 | then |
---|
| 1479 | echo "rm scpjob.$kennung" >> $job_to_send |
---|
| 1480 | fi |
---|
[1] | 1481 | if [[ $remote_host = nech ]] |
---|
| 1482 | then |
---|
| 1483 | echo "cd -" >> $job_to_send |
---|
| 1484 | fi |
---|
| 1485 | else |
---|
| 1486 | # echo "ftpcopy -d $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send |
---|
| 1487 | echo "nohup ftpcopy -d -w 15 $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null &" >> $job_to_send |
---|
| 1488 | fi |
---|
| 1489 | echo "set -x" >> $job_to_send |
---|
| 1490 | echo " ' exit" >> $job_to_send |
---|
| 1491 | echo "set -x" >> $job_to_send |
---|
| 1492 | fi |
---|
| 1493 | |
---|
| 1494 | |
---|
| 1495 | |
---|
| 1496 | # EIGENTLICHE JOB-DATEI AN QSUB-KOMMANDOS ANHAENGEN |
---|
| 1497 | cat $file_to_send >> $job_to_send |
---|
[69] | 1498 | |
---|
[1] | 1499 | if [[ $remote_host = ibm ]] |
---|
| 1500 | then |
---|
| 1501 | echo " " >> $job_to_send |
---|
| 1502 | echo "exit" >> $job_to_send |
---|
| 1503 | fi |
---|
[635] | 1504 | |
---|
| 1505 | # remove job file |
---|
[1099] | 1506 | if [[ $remote_host = lctit || $remote_host = ibmku || $remote_host = lcflow ]] |
---|
[69] | 1507 | then |
---|
| 1508 | echo " " >> $job_to_send |
---|
| 1509 | echo "rm ~/job_queue/$job_on_remhost" >> $job_to_send |
---|
| 1510 | fi |
---|
[1] | 1511 | |
---|
| 1512 | |
---|
| 1513 | |
---|
| 1514 | # USER-NAME AUF ZIELRECHNER AUS .NETRC-DATEI ERMITTELN |
---|
| 1515 | if [[ -z $remote_user ]] |
---|
| 1516 | then |
---|
| 1517 | if [[ $remote_host = t3eb || $remote_host = t3eh || $remote_host = t3ej2 || $remote_host = t3ej5 || $remote_host = t3es || $remote_host = vpp ]] |
---|
| 1518 | then |
---|
| 1519 | grep $remote_addres ~/.netrc | read dum dum dum remote_user dum dum |
---|
| 1520 | fi |
---|
| 1521 | fi |
---|
| 1522 | |
---|
| 1523 | |
---|
| 1524 | |
---|
| 1525 | # JOB AUF ZIELRECHNER TRANSFERIEREN BZW. INS JOBVERZEICHNIS KOPIEREN |
---|
| 1526 | if [[ $no_submit = false ]] |
---|
| 1527 | then |
---|
| 1528 | if [[ $remote_host != $local_host ]] |
---|
| 1529 | then |
---|
| 1530 | [[ $verify = true ]] && printf "\n >>> transfering job to \"$remote_host\"..." |
---|
[82] | 1531 | if [[ $remote_host = ibms || $remote_host = ibmy ]] # ssh on ibms cannot handle "~/" |
---|
[1] | 1532 | then |
---|
[82] | 1533 | job_catalog_save=$job_catalog |
---|
| 1534 | job_catalog=job_queue |
---|
| 1535 | elif [[ $remote_host = nech ]] |
---|
| 1536 | then |
---|
| 1537 | job_catalog_save=$job_catalog |
---|
| 1538 | job_catalog=/hpf/b/${remote_user}/job_queue |
---|
| 1539 | fi |
---|
[1096] | 1540 | if [[ $remote_host = nech ]] |
---|
[82] | 1541 | then |
---|
| 1542 | # DATEIEN KOENNEN NUR UEBER DEN ARCHIVE-SERVER DES DKRZ |
---|
| 1543 | # TRANSFERIERT WERDEN |
---|
[1094] | 1544 | scp $PORTOPT $job_to_send ${remote_user}@136.172.44.205:${job_catalog}/$job_on_remhost |
---|
[1] | 1545 | else |
---|
[1094] | 1546 | scp $PORTOPT $job_to_send ${remote_user}@${remote_addres}:${job_catalog}/$job_on_remhost |
---|
[1] | 1547 | fi |
---|
[82] | 1548 | if [[ $? = 1 ]] |
---|
| 1549 | then |
---|
| 1550 | locat=scp; exit |
---|
| 1551 | fi |
---|
| 1552 | if [[ $remote_host = ibms ]] |
---|
| 1553 | then |
---|
| 1554 | job_catalog=$job_catalog_save |
---|
| 1555 | fi |
---|
[1] | 1556 | [[ $verify = true ]] && printf "\n >>> finished\n" |
---|
| 1557 | else |
---|
| 1558 | eval job_catalog=$job_catalog |
---|
| 1559 | cp $job_to_send ${job_catalog}/$job_on_remhost |
---|
| 1560 | fi |
---|
| 1561 | |
---|
| 1562 | |
---|
| 1563 | |
---|
| 1564 | # NQS- BZW. LOADLEVELER-JOB STARTEN |
---|
| 1565 | if [[ $remote_host != $local_host ]] |
---|
| 1566 | then |
---|
| 1567 | [[ $verify = true ]] && printf "\n >>> submitting job using \"qsub\"...\n" |
---|
[635] | 1568 | |
---|
| 1569 | if [[ $(echo $remote_host | cut -c1-5) = lcsgi && $prio = true ]] |
---|
[1] | 1570 | then |
---|
[635] | 1571 | printf "\n >>> submit with HLRN qos-feature hiprio...\n" |
---|
[1094] | 1572 | ssh $SSH_PORTOPT $remote_addres -l $remote_user "cd $job_catalog; $submcom -l qos=hiprio $job_on_remhost; rm $job_on_remhost" |
---|
[635] | 1573 | elif [[ $remote_host = ibmku ]] |
---|
| 1574 | then |
---|
[1094] | 1575 | ssh $SSH_PORTOPT $remote_addres -l $remote_user "cd $job_catalog; $submcom $job_on_remhost" |
---|
[1099] | 1576 | elif [[ $remote_host = lcflow ]] |
---|
| 1577 | then |
---|
| 1578 | ssh $SSH_PORTOPT $remote_addres -l $remote_user "$init_cmds $module_calls cd $job_catalog; $submcom $job_on_remhost" |
---|
[1] | 1579 | else |
---|
[1094] | 1580 | ssh $SSH_PORTOPT $remote_addres -l $remote_user "cd $job_catalog; $submcom $job_on_remhost; rm $job_on_remhost" |
---|
[82] | 1581 | fi |
---|
[1] | 1582 | |
---|
| 1583 | [[ $verify = true ]] && printf " >>> o.k.\n" |
---|
| 1584 | else |
---|
| 1585 | cd $job_catalog |
---|
[210] | 1586 | if [[ $(echo $local_host | cut -c1-5) = lcsgi || $(echo $local_host | cut -c1-3) = ibm ]] |
---|
[1] | 1587 | then |
---|
| 1588 | eval $submcom $job_on_remhost |
---|
[1099] | 1589 | elif [[ $local_host = lcfimm || $local_host = lctit || $localhost = lcxe6 || $localhost = lck || $localhost = lckordi || $localhost = lcyon || $localhost = lcsb || $localhost = lckyu* ]] |
---|
[108] | 1590 | then |
---|
[635] | 1591 | chmod u+x $job_on_remhost |
---|
[108] | 1592 | eval $submcom $job_on_remhost |
---|
[1] | 1593 | elif [[ $local_host = nech ]] |
---|
| 1594 | then |
---|
| 1595 | if [[ $queue = default ]] |
---|
| 1596 | then |
---|
[799] | 1597 | eval $submcom $job_on_remhost |
---|
[1] | 1598 | else |
---|
[799] | 1599 | eval $submcom -q $queue $job_on_remhost |
---|
[1] | 1600 | fi |
---|
| 1601 | else |
---|
| 1602 | qsub $job_on_remhost |
---|
| 1603 | fi |
---|
[622] | 1604 | |
---|
| 1605 | # Jobfile must not be deleted on lctit/ibmku!! This will be done |
---|
| 1606 | # only at the end of the job. |
---|
[1099] | 1607 | if [[ $local_host != lctit && $local_host != ibmku && $local_host != lcflow ]] |
---|
[622] | 1608 | then |
---|
| 1609 | rm $job_on_remhost |
---|
| 1610 | fi |
---|
[1] | 1611 | cd - > /dev/null |
---|
| 1612 | fi |
---|
| 1613 | fi |
---|
| 1614 | |
---|
| 1615 | |
---|
| 1616 | |
---|
| 1617 | # ABSCHLUSSARBEITEN |
---|
| 1618 | |
---|
| 1619 | if [[ $no_submit = false ]] |
---|
| 1620 | then |
---|
[1099] | 1621 | rm -f $job_to_send |
---|
[1] | 1622 | fi |
---|
| 1623 | [[ $verify = true ]] && printf "\n\n *** SUBJOB finished \n\n" |
---|