Changeset 1866 for palm/trunk/SCRIPTS
- Timestamp:
- Apr 15, 2016 6:50:59 AM (9 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r1842 r1866 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # adjusted for lcocean 25 25 # 26 26 # Former revisions: … … 310 310 return_address=165.132.26.68 311 311 echo "+++ WARNING: fixed return_address = $return_address is used !!!!!" 312 elif [[ `hostname` = "schultzl-Latitude-E6540" ]] 313 then 314 return_address="schultzl-Latitude-E6540" 315 echo "+++ WARNING: fixed return_address = $return_address is used !!!!!" 312 316 elif [[ `hostname` = urban00 ]] 313 317 then … … 630 634 do_remote=true 631 635 case $host in 632 (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto| unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;636 (ibm|ibmh|ibmkisti|ibmku|ibms|nech|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 633 637 (*) printf "\n" 634 638 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 788 792 do_remote=true 789 793 case $host in 790 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto| nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;794 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 791 795 (*) printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" 792 796 printf "\n is not available" … … 1052 1056 do_remote=true 1053 1057 case $host in 1054 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto| nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;;1058 (ibm|ibmh|ibmkisti|ibmku|ibms|lcbullhh|lccrayb|lccrayh|lccrayf|lcflow|lckyoto|lcocean|nech|unics|lcxe6|lcxt5m|lck|lckiaps|lckordi|lckyuh|lckyut|lcsb) true;; 1055 1059 (*) printf "\n" 1056 1060 printf "\n +++ sorry: execution of batch jobs on remote host \"$host\"" … … 2390 2394 [[ ! -f a.out ]] && compile_error=true 2391 2395 continue # STATUS=1, IF a.out EXISTS 2396 elif [[ $localhost = lcocean ]] 2397 then 2398 printf " compiler is called via ssh on \"ocean\" \n" 2399 echo $PWD 2400 ssh $SSH_PORTOPT ocean -l $usern "$init_cmds $module_calls cd $TEMPDIR; make $mopts -f Makefile PROG=a.out F90=$compiler_name COPT=\"$cpp_options\" F90FLAGS=\"$fopts\" LDFLAGS=\"$lopts\" " 2401 [[ ! -f a.out ]] && compile_error=true 2402 continue # STATUS=1, IF a.out EXISTS 2392 2403 elif [[ $localhost = lcflow ]] 2393 2404 then … … 3069 3080 # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT 3070 3081 # DOES NOT EXIST 3071 if [[ $host != lcbullhh && $host != lccrayb && $host != lccrayf && $host != lccrayh && $host != lckyuh && $host != lckyut ]]3082 if [[ $host != lcbullhh && $host != lccrayb && $host != lccrayf && $host != lccrayh && $host != lckyuh && $host != lckyut && $host != lcocean ]] 3072 3083 then 3073 3084 if [[ -f $hostfile ]] … … 3140 3151 then 3141 3152 mpirun -np $ii a.out < runfile_atmos 3153 elif [[ $host = lcocean ]] 3154 then 3155 mpirun a.out $ROPTS < runfile_atmos 3142 3156 elif [[ $host = lcsb ]] 3143 3157 then … … 4079 4093 then 4080 4094 /usr/bin/ssh $SSH_PORTOPT $return_address -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4095 elif [[ $localhost = lcocean ]] 4096 then 4097 /usr/bin/ssh $SSH_PORTOPT $return_address -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4081 4098 elif [[ $localhost = lccrayb ]] 4082 4099 then … … 4291 4308 # THIS MAY CREATE A QUITE LARGE JOB-FILE, WHICH CAN CAUSE PROBLEMS WITH SOME 4292 4309 # QUEUEING-SYSTEMS 4293 if [[ $host = ibmkisti || $host = lcbullhh || $host = lccrayb || $host = lccrayf || $host = lccrayh ]]4310 if [[ $host = ibmkisti || $host = lcbullhh || $host = lccrayb || $host = lccrayf || $host = lccrayh || $host = lcocean ]] 4294 4311 then 4295 4312 -
palm/trunk/SCRIPTS/subjob
r1842 r1866 23 23 # Current revisions: 24 24 # ------------------ 25 # 25 # adjusted for lcocean 26 26 # 27 27 # Former revisions: … … 231 231 (hexagon*) local_address=129.177.20.113; local_host=lcxe6;; 232 232 (nobel*) local_address=150.183.5.101; local_host=ibms;; 233 (ocean) local_address="ocean"; local_host=lcocean;; 233 234 (orkan) local_address=130.75.105.3; local_host=lcmuk;; 234 235 (ostria) local_address=130.75.105.106; local_host=lcmuk;; … … 238 239 (quanero) local_address=130.75.105.107; local_host=lcmuk;; 239 240 (rte*) local_address=133.5.185.60; local_host=lcrte;; 241 (schultzl-Latitude-E6540) local_address="schultzl-Latitude-E6540"; local_host=lcsch;; 240 242 (shiokaze-lx) local_address=134.106.74.123; local_host=lcfor;; 241 243 (sisu-login*) local_address=86.50.166.21; local_host=lccrayf;; 242 244 (solano) local_address=130.75.105.110; local_host=lcmuk;; 243 245 (sugoka*) local_address=172.31.120.1; local_host=lckyut;; 246 (tc*) local_address="ocean"; local_host=lcocean;; 244 247 (t2a*) local_address=10.1.6.165; local_host=lctit;; 245 248 (urban*) local_address=147.46.30.151 local_host=lcsb;; … … 384 387 (lckyuh) remote_address=133.5.4.33; submcom=/usr/bin/pjsub;; 385 388 (lckyut) remote_address=133.5.4.37; submcom=/usr/bin/pjsub;; 389 (lcocean) remote_address="ocean"; submcom=qsub;; 386 390 (lcsb) remote_address=147.46.30.151; submcom=/usr/torque/bin/qsub;; 387 391 (lctit) queue=S; remote_address=10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;; … … 1165 1169 %%END%% 1166 1170 1171 elif [[ $remote_host = lcocean ]] 1172 then 1173 cat > $job_to_send << %%END%% 1174 #!/bin/bash 1175 #$ -cwd 1176 #$ -V 1177 #$ -N $job_name 1178 #$ -pe orte $numprocs 1179 #$ -o $remote_dayfile 1180 #$ -j y 1181 #$ -R y 1182 $init_cmds 1183 $module_calls 1184 1185 %%END%% 1186 1167 1187 elif [[ $remote_host = nech ]] 1168 1188 then … … 1244 1264 echo "trap '" >> $job_to_send 1245 1265 echo "set +vx" >> $job_to_send 1246 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 ]]1266 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 || $remote_host = lcocean ]] 1247 1267 then 1248 1268 if [[ $remote_host = ibmh ]] … … 1395 1415 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1396 1416 echo "%%END%%" >> $job_to_send 1417 1418 elif [[ $remote_host = lcocean ]] 1419 then 1420 echo "cat > scpjob.${identifier}.tmp << %%END%%" >> $job_to_send 1421 echo "#!/bin/bash" >> $job_to_send 1422 echo "SGEPREFIX -S /bin/bash" >> $job_to_send 1423 echo "SGEPREFIX -N transfer_$job_name" >> $job_to_send 1424 echo "SGEPREFIX -cwd" >> $job_to_send 1425 echo "SGEPREFIX -j y" >> $job_to_send 1426 echo "SGEPREFIX -o ${local_host}_${job_name}_scpjob_$identifier" >> $job_to_send 1427 echo " " >> $job_to_send 1428 echo "set -x" >> $job_to_send 1429 echo "export PALM_BIN=$PALM_BIN" | sed -e 's:'$HOME':$HOME:' >> $job_to_send 1430 echo "export PATH=\$PATH:\$PALM_BIN" >> $job_to_send 1431 echo "" >> $job_to_send 1432 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1433 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1434 echo "rm -f scpjob.${identifier}" >> $job_to_send 1435 echo "%%END%%" >> $job_to_send 1436 echo "sed -e 's/SGEPREFIX/#$/g' scpjob.${identifier}.tmp > scpjob.${identifier}" >> $job_to_send 1437 echo "rm -f scpjob.${identifier}.tmp" >> $job_to_send 1397 1438 1398 1439 elif [[ $remote_host = lcflow ]] … … 1484 1525 echo "scp $PORTOPT scpjob.$identifier ${remote_username}@${remote_address}:job_queue" >> $job_to_send 1485 1526 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_address} \"cd job_queue; $submcom scpjob.$identifier; rm scpjob.$identifier\" " >> $job_to_send 1486 elif [[ $remote_host = lcflow ]]1527 elif [[ $remote_host = lcflow || $remote_host = lcocean ]] 1487 1528 then 1488 1529 echo "mv scpjob.$identifier $job_catalog" >> $job_to_send
Note: See TracChangeset
for help on using the changeset viewer.