Changeset 37102 for trunk/ippScripts/scripts/sc_prepare_camera.pl
- Timestamp:
- Jul 22, 2014, 3:50:46 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/sc_prepare_camera.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_prepare_camera.pl
r36966 r37102 18 18 19 19 # Hard coded values 20 my $remote_root = '/scratch3/watersc1/'; # Far side destination base location 20 # my $remote_root = '/scratch3/watersc1/'; # Far side destination base location 21 my $remote_root = '/lustre/scratch1/turquoise/watersc1/ps1/'; # Far side destination base location 21 22 my $threads = 2; # How many threads are we going to use? 22 23 my $job_cost = 1700 / 60 / 60; # Estimate of how long a job runs, in hours. … … 27 28 my $max_time = 8; # longest allocation to ask for 28 29 my $remote_hostname= "LANL/Mustang"; # Name of the remote node. 29 my @return_component_list = ("DBINFO.EXP", "PSASTRO.CONFIG", "PSASTRO.OUTPUT", "LOG.EXP", "TRACE.EXP","PSASTRO.STATS");30 my @return_component_list = ("DBINFO.EXP", "PSASTRO.CONFIG", "PSASTRO.OUTPUT", "LOG.EXP", "PSASTRO.STATS"); 30 31 # Look for programs we need 31 32 my $missing_tools; … … 186 187 $psastro_command .= " -recipe PSASTRO $recipe_psastro "; 187 188 $psastro_command .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log "; 188 $psastro_command .= " -dumpconfig ${remote_outroot}. mdc -stats ${remote_outroot}.stats ";189 $psastro_command .= " -dumpconfig ${remote_outroot}.psastro.mdc -stats ${remote_outroot}.stats "; 189 190 $psastro_command .= " -recipe PPSTATS CAMSTATS "; 190 191 … … 202 203 my ($ipp_disk, $remote_disk) = uri_to_outputs_for_return( $filename); 203 204 my $remote_outroot_dir = dirname($ipp_disk); 204 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} ";205 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} && touch $remote_disk "; 205 206 } 206 207 foreach my $chipInfo (@{ $inpData2 }) { … … 208 209 my ($ipp_disk, $remote_disk) = uri_to_outputs_for_return( $filename); 209 210 my $remote_outroot_dir = dirname($ipp_disk); 210 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} ";211 print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} && touch $remote_disk "; 211 212 } 212 213 print CONFIG "\n"; … … 239 240 $node_req = int(($node_need * $job_cost) / ($fill_factor * $time_req)) + 1; 240 241 } 242 $time_req += 1; # Safety addition. 241 243 242 244 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.
