Changeset 2266 for palm/trunk/SCRIPTS/subjob
- Timestamp:
- Jun 9, 2017 9:27:21 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/subjob
r2257 r2266 28 28 # ----------------- 29 29 # $Id$ 30 # nech related parts removed 31 # 32 # 2257 2017-06-07 14:07:05Z witha 30 33 # adjustments for lceddy, removed lcflow-specific code 31 34 # … … 231 234 (climate*) local_address=165.132.26.68; local_host=lcyon;; 232 235 (clogin*) local_address=86.50.166.21; local_host=lccrayf;; 233 (cs*) local_address=136.172.44.131; local_host=nech;;234 236 (elephanta) local_address=130.75.105.6; local_host=lcmuk;; 235 237 (hpcl*) local_address=eddy.hpc.uni-oldenburg.de; local_host=lceddy;; … … 334 336 printf "\n -h execution host, available hosts: $remote_host" 335 337 printf "\n ibm, ibmh, ibmkisti, ibmku, ibms, lc...," 336 printf "\n lckiaps, lctit , nech"338 printf "\n lckiaps, lctit" 337 339 printf "\n -m memory demand per process in MByte ---" 338 340 printf "\n -n jobname <jobdatei>" … … 420 422 (lcxt5m) remote_address=193.166.211.144; submcom=/opt/pbs/10.1.0.91350/bin/qsub;; 421 423 (lcyon) remote_address=165.132.26.68; submcom=/usr/torque/bin/qsub;; 422 (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_address=136.172.44.147; submcom="/usr/local/bin/qsub";;423 424 (*) printf "\n +++ hostname \"$remote_host\" not allowed"; 424 425 locat=parameter; exit;; … … 536 537 fi 537 538 done 538 if [[ $remote_host = nech ]]539 then540 if (( tasks_per_node != 0 ))541 then542 (( cputime = cputime * tasks_per_node ))543 elif [[ $numprocs != 0 ]]544 then545 (( cputime = cputime * numprocs ))546 fi547 fi548 539 (( stunden = cputime / 3600 )) 549 540 (( resttime = cputime - stunden * 3600 )) … … 569 560 done 570 561 571 if [[ $remote_host = nech ]] 572 then 573 if (( tasks_per_node != 0 )) 574 then 575 (( Memory = memory * tasks_per_node / 1000 )) 576 elif [[ $numprocs != 0 ]] 577 then 578 (( Memory = memory * numprocs / 1000 )) 579 else 580 (( Memory = memory / 1000 )) 581 fi 582 elif [[ $remote_host = lctit ]] 562 if [[ $remote_host = lctit ]] 583 563 then 584 564 (( Memory = memory * tasks_per_node / 1000 )) … … 1204 1184 %%END%% 1205 1185 1206 elif [[ $remote_host = nech ]]1207 then1208 1209 if (( nodes > 1 ))1210 then1211 cat > $job_to_send << %%END%%1212 #!/bin/ksh1213 #PBS -l cpunum_prc=$processes_per_node,cputim_job=$cputime1214 #PBS -l ${qsubmem}=${Memory}gb1215 #PBS -b $nodes1216 #PBS -o $remote_dayfile1217 #PBS -N palm1218 #PBS -j o1219 #PBS -T mpisx1220 1221 %%END%%1222 1223 elif [[ $numprocs != 0 ]]1224 then1225 cat > $job_to_send << %%END%%1226 #!/bin/ksh1227 #PBS -l cpunum_prc=$processes_per_node,cputim_job=$cputime1228 #PBS -l ${qsubmem}=${Memory}gb1229 #PBS -o $remote_dayfile1230 #PBS -N palm1231 #PBS -j o1232 1233 %%END%%1234 1235 else1236 cat > $job_to_send << %%END%%1237 #!/bin/ksh1238 #PBS -l ${qsubmem}=${Memory}gb,${qsubtime}=$cputime1239 #PBS -o $remote_dayfile1240 #PBS -j o1241 1242 %%END%%1243 1244 fi1245 1246 1186 elif [[ $remote_host = lctit ]] 1247 1187 then … … 1352 1292 fi 1353 1293 echo "echo \"exit\" >> scpjob.$identifier" >> $job_to_send 1354 1355 elif [[ $remote_host = nech ]]1356 then1357 echo "cd /pf/b/${remote_user}/job_queue" >> $job_to_send1358 echo "cat > scpjob.$identifier << %%END%%" >> $job_to_send1359 echo "#PBS -l ${qsubmem}=1GB,${qsubtime}=100" >> $job_to_send1360 echo "#PBS -o last_job_transfer_protocol" >> $job_to_send1361 echo "#PBS -j o" >> $job_to_send1362 echo " " >> $job_to_send1363 echo "set -x" >> $job_to_send1364 echo "cd /pf/b/${remote_user}/job_queue" >> $job_to_send1365 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1366 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send1367 echo "%%END%%" >> $job_to_send1368 1294 1369 1295 elif [[ $remote_host = lcbullhh ]] … … 1533 1459 echo "rm scpjob.$identifier" >> $job_to_send 1534 1460 fi 1535 if [[ $remote_host = nech ]]1536 then1537 echo "cd -" >> $job_to_send1538 fi1539 1461 else 1540 1462 # echo "ftpcopy -d $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send … … 1575 1497 job_catalog_save=$job_catalog 1576 1498 job_catalog=job_queue 1577 elif [[ $remote_host = nech ]]1578 then1579 job_catalog_save=$job_catalog1580 job_catalog=/hpf/b/${remote_user}/job_queue1581 1499 fi 1582 if [[ $remote_host = nech ]] 1583 then 1584 # FILES CAN ONLY BE TRANSFERED VIA DKRZ'S ARCHIVE-SERVER 1585 scp $PORTOPT $job_to_send ${remote_user}@136.172.44.205:${job_catalog}/$job_on_remhost 1586 else 1587 scp $ssh_key $PORTOPT $job_to_send ${remote_user}@${remote_address}:${job_catalog}/$job_on_remhost 1588 fi 1500 scp $ssh_key $PORTOPT $job_to_send ${remote_user}@${remote_address}:${job_catalog}/$job_on_remhost 1589 1501 if [[ $? = 1 ]] 1590 1502 then … … 1625 1537 chmod u+x $job_on_remhost 1626 1538 eval $submcom $job_on_remhost 1627 elif [[ $local_host = nech ]]1628 then1629 if [[ $queue = default ]]1630 then1631 eval $submcom $job_on_remhost1632 else1633 eval $submcom -q $queue $job_on_remhost1634 fi1635 1539 elif [[ $local_host = lcbullhh ]] 1636 1540 then
Note: See TracChangeset
for help on using the changeset viewer.