Changeset 2295 for palm/trunk/SCRIPTS/subjob
- Timestamp:
- Jun 27, 2017 2:25:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/subjob
r2266 r2295 28 28 # ----------------- 29 29 # $Id$ 30 # adjustments for using lcgeohu (cirrus @ HUB) 31 # 32 # 2266 2017-06-09 09:27:21Z raasch 30 33 # nech related parts removed 31 34 # … … 279 282 (vorias) local_address=172.20.25.43; local_host=lcmuk;; 280 283 (*.cc.kyushu-u.ac.jp) local_address=133.5.4.129; local_host=ibmku;; 284 (*.cluster) local_address=192.168.1.254; local_host=lcgeohu;; 281 285 (*) printf "\n +++ \"$local_host\" unknown"; 282 286 printf "\n please contact the PALM group at IMUK"; … … 410 414 (lccrayf) queue=small; remote_address=86.50.166.21; submcom=/opt/slurm/default/bin/sbatch;; 411 415 (lceddy) remote_address=eddy.hpc.uni-oldenburg.de; submcom=sbatch;; 416 (lcgeohu) remote_address=cirrus.geo.hu-berlin.de; submcom=sbatch;; 412 417 (lckyoto) remote_address=133.3.51.11; submcom=/thin/local/bin/qsub;; 413 418 (lck) remote_address=165.132.26.61; submcom=/usr/torque/bin/qsub;; … … 964 969 fi 965 970 971 elif [[ $remote_host = lcgeohu ]] 972 then 973 974 if [[ $email_notification = none ]] 975 then 976 notify_user="" 977 else 978 notify_user="#SBATCH --mail-type=ALL" 979 fi 980 981 if [[ $numprocs != 0 ]] 982 then 983 cat > $job_to_send << %%END%% 984 #!/bin/bash 985 #SBATCH --job-name=$job_name 986 #SBATCH --ntasks=$processes_per_node 987 #SBATCH --time=$timestring 988 #SBATCH --output=$remote_dayfile 989 #SBATCH --error=$remote_dayfile 990 #SBATCH --qos=short 991 $notify_user 992 993 $init_cmds 994 $module_calls 995 996 %%END%% 997 998 else 999 cat > $job_to_send << %%END%% 1000 #!/bin/bash 1001 #SBATCH --job-name=$job_name 1002 #SBATCH --ntasks=$processes_per_node 1003 #SBATCH --output=$remote_dayfile 1004 #SBATCH --error=$remote_dayfile 1005 #SBATCH -l ncpus=1 1006 1007 $init_cmds 1008 $module_calls 1009 1010 %%END%% 1011 1012 fi 1013 966 1014 elif [[ $remote_host = lckiaps ]] 967 1015 then … … 1223 1271 echo "trap '" >> $job_to_send 1224 1272 echo "set +vx" >> $job_to_send 1225 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 = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 || $remote_host = lcocean ]]1273 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 = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 || $remote_host = lcocean || $remote_host = lcgeohu ]] 1226 1274 then 1227 1275 if [[ $remote_host = ibmh ]] … … 1398 1446 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1399 1447 echo "%%END%%" >> $job_to_send 1448 1449 elif [[ $remote_host = lcgeohu ]] 1450 then 1451 echo "cat > scpjob.$identifier << %%END%%" >> $job_to_send 1452 echo "#!/bin/bash" >> $job_to_send 1453 echo "#SBATCH --job-name=job_protocol_transfer" >> $job_to_send 1454 echo "#SBATCH -t 00:20:00" >> $job_to_send 1455 echo "#SBATCH -N 1" >> $job_to_send 1456 echo "#SBATCH -n 1" >> $job_to_send 1457 echo "#SBATCH -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send 1458 echo "#SBATCH -o $remote_dayfile" >> $job_to_send 1459 echo "#SBATCH -e $remote_dayfile" >> $job_to_send 1460 echo " " >> $job_to_send 1461 echo "set -x" >> $job_to_send 1462 echo "sbatch scpjob.$identifier" >> $job_to_send 1463 echo "%%END%%" >> $job_to_send 1464 1400 1465 else 1401 1466 … … 1497 1562 job_catalog_save=$job_catalog 1498 1563 job_catalog=job_queue 1564 elif [[ $remote_host = lcgeohu ]] 1565 then 1566 job_catalog_save=$job_catalog 1567 job_catalog=/home/${remote_user}/job_queue 1499 1568 fi 1500 1569 scp $ssh_key $PORTOPT $job_to_send ${remote_user}@${remote_address}:${job_catalog}/$job_on_remhost … … 1503 1572 locat=scp; exit 1504 1573 fi 1505 if [[ $remote_host = ibms ]]1574 if [[ $remote_host = ibms || $remote_host = lcgeohu ]] 1506 1575 then 1507 1576 job_catalog=$job_catalog_save … … 1523 1592 then 1524 1593 ssh $SSH_PORTOPT $remote_address -l $remote_user "cd $job_catalog; $submcom $job_on_remhost" 1594 elif [[ $remote_host = lcgeohu ]] 1595 then 1596 ssh $ssh_key $SSH_PORTOPT $remote_address -l $remote_user "cd $job_catalog; $submcom $job_on_remhost" 1525 1597 else 1526 1598 ssh $ssh_key $SSH_PORTOPT $remote_address -l $remote_user "cd $job_catalog; $submcom $job_on_remhost; rm $job_on_remhost" … … 1530 1602 else 1531 1603 cd $job_catalog 1532 if [[ $(echo $local_host | cut -c1-3) = ibm || $(echo $local_host | cut -c1-6) = lccray || $local_host = lceddy ]]1604 if [[ $(echo $local_host | cut -c1-3) = ibm || $(echo $local_host | cut -c1-6) = lccray || $local_host = lceddy || $local_host = lcgeohu ]] 1533 1605 then 1534 1606 eval $submcom $job_on_remhost … … 1549 1621 # JOBFILE MUST NOT BE DELETED ON lctit/ibmku. THIS WILL BE DONE 1550 1622 # AT THE END OF THE JOB 1551 if [[ $local_host != lctit && $local_host != ibmku ]]1623 if [[ $local_host != lctit && $local_host != ibmku && $local_host != lcgeohu ]] 1552 1624 then 1553 1625 rm $job_on_remhost
Note: See TracChangeset
for help on using the changeset viewer.