- Timestamp:
- Aug 12, 2014, 3:55:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippScripts/scripts/sc_prepare_warp.pl
r36966 r37242 18 18 19 19 # Hard coded values 20 my $remote_root = '/scratch3/watersc1/'; # Far side destination base location 20 # my $remote_root = '/scratch3/watersc1/'; 21 my $remote_root = '/lustre/scratch1/turquoise/watersc1/ps1/'; # Far side destination base location 22 $remote_root = '/scratch3/watersc1/'; 21 23 my $threads = 2; # How many threads are we going to use? 22 my $job_cost = 70 / 60 / 60;# Estimate of how long a job runs, in hours.24 my $job_cost = 110 / 60 / 60; # Estimate of how long a job runs, in hours. 23 25 my $proc_per_node = 24; # processors per node 24 26 my $min_nodes = 1; # smallest allocation to ask for … … 27 29 my $max_time = 8; # longest allocation to ask for 28 30 my $remote_hostname= "LANL/Mustang"; # Name of the remote node. 29 my @return_component_list = ("DBINFO.EXP", "PSWARP.CONFIG", "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.VARIANCE", "PSWARP.OUTPUT.SOURCES","PSPHOT.PSF.S AVE","LOG.EXP","TRACE.EXP");31 my @return_component_list = ("DBINFO.EXP", "PSWARP.CONFIG", "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.VARIANCE", "PSWARP.OUTPUT.SOURCES","PSPHOT.PSF.SKY.SAVE","LOG.EXP"); 30 32 # Look for programs we need 31 33 my $missing_tools; … … 202 204 $pswarp_command .= " -threads 4 "; # -image_id ${image_id} -source_id ${source_id} "; 203 205 $pswarp_command .= " -recipe PPSTATS WARPSTATS "; 204 $pswarp_command .= " -dumpconfig ${remote_outroot}. mdc -stats ${remote_outroot}.stats ";206 $pswarp_command .= " -dumpconfig ${remote_outroot}.pswarp.mdc -stats ${remote_outroot}.stats "; 205 207 206 208 # print "$pswarp_command \n"; … … 218 220 # Determine which output files need to be returned 219 221 foreach my $component(@return_component_list) { 220 my $filename = $ipprc->filename($component,$ipp_outroot );222 my $filename = $ipprc->filename($component,$ipp_outroot,$skycell_id); 221 223 my ($ipp_disk, $remote_disk) = uri_to_outputs_for_return( $filename); 222 224 my $remote_outroot_dir = dirname($ipp_disk); 223 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} ";225 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} && touch $remote_disk "; 224 226 } 225 227 … … 255 257 $node_req = int(($node_need * $job_cost) / ($fill_factor * $time_req)) + 1; 256 258 } 259 $time_req += 1; # Safety addition. 257 260 258 261 open(COMMAND, ">$disk_command") || &my_die("Couldn't open file? $disk_command",$remote_id,$PS_EXIT_SYS_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
