Changeset 1620 for palm/trunk/SCRIPTS/subjob
- Timestamp:
- Jul 17, 2015 11:37:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/subjob
r1576 r1620 23 23 # Current revisions: 24 24 # ------------------ 25 # 25 # adjustments for Mistral at DKRZ Hamburg (lcbullhh) 26 26 # 27 27 # Former revisions: … … 174 174 175 175 176 177 178 176 # DETERMINE NAME OF LOCAL HOST 179 177 local_host=$(hostname) 180 181 182 178 183 179 # SET HOST-SPECIFIC VARIABLES VEREINBAREN (CHECK, IF LOCAL HOST … … 223 219 (meller) local_address=134.106.74.155; local_host=lcfor;; 224 220 (meteo-login*) local_address=193.166.211.144;local_host=lcxt5m;; 221 (mlogin1*|m1*) local_address=136.172.50.13; local_host=lcbullhh;; 225 222 (hexagon*) local_address=129.177.20.113; local_host=lcxe6;; 226 223 (nobel*) local_address=150.183.5.101; local_host=ibms;; … … 367 364 (ibmku) queue=s4; remote_address=133.5.4.129; submcom=/usr/local/bin/llsubmit;; 368 365 (ibms) queue=p_normal; remote_address=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 366 (lcbullhh) queue=compute; remote_address=136.172.50.13; submcom=/usr/bin/sbatch;; 369 367 (lccrayb) queue=mpp1testq; remote_address=130.73.233.1; submcom=/opt/moab/default/bin/msub;; 370 368 (lccrayh) queue=mpp1testq; remote_address=130.75.4.1; submcom=/opt/moab/default/bin/msub;; … … 413 411 (ibms) case $ndq in 414 412 (express|normal|p_express|p_normal|p_normal_1.3|p_normal_1.7|grand) error=false;; 413 (*) error=true;; 414 esac;; 415 (lcbullhh) case $ndq in 416 (compute|shared) error=false;; 415 417 (*) error=true;; 416 418 esac;; … … 617 619 fi 618 620 619 620 621 621 # GENERATE RANDOM IDENTIFIER, AND DETERMINE THE JOBNAME ON THE TARGET HOST 622 622 identifier=$RANDOM … … 630 630 remote_dayfile=/dev/null 631 631 fi 632 633 632 634 633 … … 780 779 %%END%% 781 780 781 elif [[ $remote_host = lcbullhh ]] 782 then 783 if [[ $numprocs != 0 ]] 784 then 785 cat > $job_to_send << %%END%% 786 #!/bin/bash -l 787 #SBATCH -J $job_name 788 #SBATCH -t $timestring 789 #SBATCH -N $nodes 790 #SBATCH --ntasks-per-node=$processes_per_node 791 #SBATCH -p $queue 792 #SBATCH -o $remote_dayfile 793 #SBATCH -e $remote_dayfile 794 #SBATCH -A $project_account 795 796 $init_cmds 797 $module_calls 798 799 %%END%% 800 801 else 802 cat > $job_to_send << %%END%% 803 #!/bin/bash -l 804 #SBATCH -J $job_name 805 #SBATCH -t $timestring 806 #SBATCH -l ncpus=1 807 #SBATCH -l pmem=${memory}mb 808 #SBATCH -m abe 809 #SBATCH -o $remote_dayfile 810 #SBATCH -e $remote_dayfile 811 #SBATCH -A $project_account 812 813 $init_cmds 814 $module_calls 815 816 %%END%% 817 818 fi 819 782 820 elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]] 783 821 then … … 1196 1234 echo "trap '" >> $job_to_send 1197 1235 echo "set +vx" >> $job_to_send 1198 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lc crayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 ]]1236 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lcbullhh || $remote_host = lccrayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 ]] 1199 1237 then 1200 1238 if [[ $remote_host = ibmh ]] … … 1210 1248 then 1211 1249 return_queue=p_normal 1250 elif [[ $remote_host = lcbullhh ]] 1251 then 1252 return_queue=shared 1212 1253 elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]] 1213 1254 then … … 1276 1317 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1277 1318 echo "%%END%%" >> $job_to_send 1319 1320 elif [[ $remote_host = lcbullhh ]] 1321 then 1322 echo "cat > scpjob.$identifier << %%END%%" >> $job_to_send 1323 echo "#!/bin/bash" >> $job_to_send 1324 echo "#SBATCH --job-name=job_protocol_transfer" >> $job_to_send 1325 echo "#SBATCH -t 00:20:00" >> $job_to_send 1326 echo "#SBATCH -N 1" >> $job_to_send 1327 echo "#SBATCH -n 1" >> $job_to_send 1328 echo "#SBATCH -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send 1329 echo "#SBATCH -o $remote_dayfile" >> $job_to_send 1330 echo "#SBATCH -e $remote_dayfile" >> $job_to_send 1331 echo "#SBATCH -A $project_account" >> $job_to_send 1332 echo "#SBATCH -p $return_queue" >> $job_to_send 1333 echo " " >> $job_to_send 1334 echo "set -x" >> $job_to_send 1335 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1336 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1337 echo "%%END%%" >> $job_to_send 1278 1338 1279 1339 elif [[ $remote_host = lckyuh ]] … … 1387 1447 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1388 1448 echo "%%END%%" >> $job_to_send 1449 1389 1450 fi 1390 1451 … … 1392 1453 then 1393 1454 echo "llsubmit scpjob.$identifier" >> $job_to_send 1455 elif [[ $remote_host = lcbullhh ]] 1456 then 1457 echo "sbatch scpjob.$identifier" >> $job_to_send 1394 1458 elif [[ $remote_host = lccrayb || $remote_host = lccrayh ]] 1395 1459 then … … 1436 1500 1437 1501 1438 1439 1502 # APPEND THE JOB-FILE (CREATE BY mrun) TO THE JOB-DIRECTIVES GENERATED ABOVE 1440 1503 cat $file_to_send >> $job_to_send … … 1525 1588 eval $submcom -q $queue $job_on_remhost 1526 1589 fi 1590 elif [[ $local_host = lcbullhh ]] 1591 then 1592 if [[ $queue = default ]] 1593 then 1594 eval $submcom $job_on_remhost 1595 fi 1527 1596 else 1528 1597 qsub $job_on_remhost … … 1539 1608 fi 1540 1609 1541 1542 1543 1610 # FINAL ACTIONS 1544 1611 if [[ $no_submit = false ]]
Note: See TracChangeset
for help on using the changeset viewer.