Changeset 164 for palm/trunk/SCRIPTS
- Timestamp:
- May 15, 2008 8:46:15 AM (16 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r149 r164 140 140 # true, mrun tries "ln -f" on local output and resorts 141 141 # to "cp" or "cp -r" on error 142 # 15/04/08 - Siggi - argument -c introduced to most of the subjob calls, 143 # which allows the user to choose his own job catalog 144 # by setting job_catalog in the configuration file 145 # (default is ~/job_queue), 146 # workaround for mpixec with -env option, 147 # adjustments for lcxt4 (Bergen Center for Computational 148 # Science) 142 149 143 150 # VARIABLENVEREINBARUNGEN + DEFAULTWERTE … … 183 190 input_list="" 184 191 interpreted_config_file="" 192 job_catalog="~/job_queue" 185 193 job_on_file="" 186 194 keep_data_from_previous_run=false … … 1817 1825 lopts="$lopts $netcdf_lib $dvrp_lib" 1818 1826 ROPTS="$ropts" 1819 if [[ ( $(echo $host | cut -c1-3) = nec || $(echo $host | cut -c1-3) = ibm || $host = lctit || $host = lcfimm ) && -n $numprocs ]]1827 if [[ ( $(echo $host | cut -c1-3) = nec || $(echo $host | cut -c1-3) = ibm || $host = lctit || $host = lcfimm || $host = lcxt4 ) && -n $numprocs ]] 1820 1828 then 1821 1829 XOPT="-X $numprocs" … … 2768 2776 then 2769 2777 printf "\n\n" 2770 mpiexec -machinefile hostfile -n $ii a.out $ROPTS 2778 if [[ $host = lcxt4 ]] 2779 then 2780 aprun -n $ii -N $tasks_per_node a.out $ROPTS 2781 else 2782 mpiexec -machinefile hostfile -n $ii a.out $ROPTS 2783 fi 2771 2784 else 2772 2785 (( iii = ii / 2 )) 2786 echo "atmosphere_to_ocean" > runfile_atmos 2787 echo "ocean_to_atmosphere" > runfile_ocean 2788 2773 2789 printf "\n coupled run ($iii atmosphere, $iii ocean)" 2774 2790 printf "\n\n" 2775 mpiexec -machinefile hostfile -n $iii -env coupling_mode atmosphere_to_ocean a.out $ROPTS & 2776 mpiexec -machinefile hostfile -n $iii -env coupling_mode ocean_to_atmosphere a.out $ROPTS & 2791 2792 if [[ $host == lcxt4 ]] 2793 then 2794 aprun -n $iii -N $tasks_per_node a.out < runfile_atmos $ROPTS & 2795 aprun -n $iii -N $tasks_per_node a.out < runfile_ocean $ROPTS & 2796 else 2797 2798 # WORKAROUND BECAUSE mpiexec WITH -env option IS NOT AVAILABLE ON SOME SYSTEMS 2799 mpiexec -machinefile hostfile -n $iii a.out $ROPTS < runfile_atmos & 2800 mpiexec -machinefile hostfile -n $iii a.out $ROPTS < runfile_ocean & 2801 # mpiexec -machinefile hostfile -n $iii -env coupling_mode atmosphere_to_ocean a.out $ROPTS & 2802 # mpiexec -machinefile hostfile -n $iii -env coupling_mode ocean_to_atmosphere a.out $ROPTS & 2803 fi 2777 2804 wait 2778 2805 fi … … 2970 2997 if [[ "$LOGNAME" = b323013 ]] 2971 2998 then 2972 subjob -v -q c1 -X 0 -m 1000 -t 900 transfer_${localout[$i]}2999 subjob -v -q c1 -X 0 -m 1000 -t 900 -c $job_catalog transfer_${localout[$i]} 2973 3000 else 2974 subjob -d -v -q c1 -X 0 -m 1000 -t 900 transfer_${localout[$i]}3001 subjob -d -v -q c1 -X 0 -m 1000 -t 900 -c $job_catalog transfer_${localout[$i]} 2975 3002 fi 2976 3003 fi … … 3045 3072 if [[ $LOGNAME = b323013 ]] 3046 3073 then 3047 subjob -v -q c1 -X 0 -m 1000 -t 900 transfer_${localout[$i]}3074 subjob -v -q c1 -X 0 -m 1000 -t 900 -c $job_catalog transfer_${localout[$i]} 3048 3075 else 3049 subjob -d -v -q c1 -X 0 -m 1000 -t 900 transfer_${localout[$i]}3076 subjob -d -v -q c1 -X 0 -m 1000 -t 900 -c $job_catalog transfer_${localout[$i]} 3050 3077 fi 3051 3078 fi … … 3232 3259 if [[ $localhost = ibmh || $localhost = ibmb ]] 3233 3260 then 3234 # subjob -d -v -q cdata -X 0 -m 1000 -t 43200 archive_${frelout[$i]}3235 subjob -v -q cdata -X 0 -m 1000 -t 43200 archive_${frelout[$i]}3261 # subjob -d -v -q cdata -X 0 -m 1000 -t 43200 -c $job_catalog archive_${frelout[$i]} 3262 subjob -v -q cdata -X 0 -m 1000 -t 43200 -c $job_catalog archive_${frelout[$i]} 3236 3263 elif [[ $localhost = nech ]] 3237 3264 then … … 3357 3384 fi 3358 3385 3359 subjob -v -d -q cdata -X 0 -m 1000 -t 43200 archive_${frelout[$i]}3386 subjob -v -d -q cdata -X 0 -m 1000 -t 43200 -c $job_catalog archive_${frelout[$i]} 3360 3387 printf " Archiving of $tmp_data_catalog/${frelout[$i]} initiated (batch job submitted)\n" 3361 3388 file_saved=true … … 3800 3827 fi 3801 3828 3802 subjob $job_on_file -h $host -u $remote_username -g $group_number -q $queue -m $memory -N $node_usage -t $cpumax $XOPT $TOPT $OOPT -n $fname -v $jobfile3829 subjob $job_on_file -h $host -u $remote_username -g $group_number -q $queue -m $memory -N $node_usage -t $cpumax $XOPT $TOPT $OOPT -n $fname -v -c $job_catalog $jobfile 3803 3830 rm -rf $jobfile 3804 3831 -
palm/trunk/SCRIPTS/subjob
r129 r164 90 90 # 19/10/07 - Siggi - a ";" was missing in the last change done by Marcus 91 91 # 30/10/07 - Marcus- further adjustments for queues on lctit 92 # 15/05/08 - Siggi - adjustments for lcxt4 (Bergen Center for Computational 93 # Science) 92 94 93 95 … … 167 169 (gregale) local_addres=130.75.105.109; local_host=lcmuk;; 168 170 (hababai) local_addres=130.75.105.108; local_host=lcmuk;; 171 (hexagon.bccs.uib.no) local_addres=129.177.20.113; local_host=lcxt4;; 169 172 (hreg*-en0|hanni*-en0) local_addres=130.75.4.10; local_host=ibmh;; 170 173 (irifi) local_addres=130.75.105.104; local_host=lcmuk;; 171 174 (levanto) local_addres=130.75.105.45; local_host=lcmuk;; 172 175 (maestro) local_addres=130.75.105.2; local_host=lcmuk;; 176 (nid*) local_addres=129.177.20.113; local_host=lcxt4;; 173 177 (nobel*) local_addres=150.183.5.101; local_host=ibms;; 174 178 (orkan) local_addres=130.75.105.3; local_host=lcmuk;; … … 303 307 (lcfimm) remote_addres=172.20.4.2; submcom=/opt/torque/bin/qsub;; 304 308 (lctit) queue=lctit; remote_addres=172.17.75.161; submcom=/n1ge/TITECH_GRID/tools/bin/n1ge;; 309 (lcxt4) remote_addres=129.177.20.113; submcom=/opt/torque/2.3.0/bin/qsub;; 305 310 (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=136.172.44.147; submcom="/usr/local/bin/qsub";; 306 311 (neck) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres=133.5.178.11; submcom="/usr/bin/nqsII/qsub";; … … 639 644 %%END%% 640 645 646 elif [[ $remote_host = lcxt4 ]] 647 then 648 649 if [[ $numprocs != 0 ]] 650 then 651 cat > $job_to_send << %%END%% 652 #!/bin/ksh 653 #PBS -S /bin/ksh 654 #PBS -N $job_name 655 #PBS -A nersc 656 #PBS -l walltime=$timestring 657 #PBS -l mppwidth=${numprocs} 658 #PBS -l mppnppn=${tasks_per_node} 659 #PBS -m abe 660 #PBS -M igore@nersc.no 661 #PBS -o $remote_dayfile 662 #PBS -e $remote_dayfile 663 664 %%END%% 665 641 666 else 642 667 cat > $job_to_send << %%END%% … … 1022 1047 then 1023 1048 eval $submcom $job_on_remhost 1024 elif [[ $local_host = lcfimm ]] 1025 then 1026 eval $submcom $job_on_remhost 1027 echo "$submcom $job_on_remhost" 1028 chmod u+x $job_on_remhost 1029 elif [[ $local_host = lctit ]] 1049 elif [[ $local_host = lcfimm || $local_host = lctit || $localhost = lcxt4 ]] 1030 1050 then 1031 1051 eval $submcom $job_on_remhost
Note: See TracChangeset
for help on using the changeset viewer.