Changeset 37981
- Timestamp:
- Mar 17, 2015, 2:55:55 PM (11 years ago)
- Location:
- tags/ipp-pv3-20140717
- Files:
-
- 4 edited
-
ippScripts/scripts/lap_science.pl (modified) (2 diffs)
-
ippScripts/scripts/sc_prepare_run.pl (modified) (3 diffs)
-
ippScripts/scripts/sc_prepare_warp.pl (modified) (1 diff)
-
ippTools/share/stacktool_definebyquery_insert_random_part2.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140717/ippScripts/scripts/lap_science.pl
r37788 r37981 1049 1049 $command .= " -dbname $dbname " if defined $dbname; 1050 1050 $command .= " -definebyquery -select_skycell_id ${proj_cell}.% -select_filter $filter "; 1051 $command .= " -select_fwhm_major_max 10.0 -select_zpt_obs_min 25.85 -select_bg_max 425 "; 1052 $command .= " -select_good_frac_min 0.20 "; 1051 1053 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1052 1054 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1053 $command .= " -min_num ${minimum_stack_inputs} - max_num ${maximum_stack_inputs}-set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";1055 $command .= " -min_num ${minimum_stack_inputs} -random 100 -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1054 1056 $command .= " $warps "; 1055 1057 … … 1064 1066 1065 1067 ## 1066 ## Queue the "deep" stacks that will run locally. 1067 my $deep_minimum = $maximum_stack_inputs + 1; 1068 if ($deep_minimum < 2) { $deep_minimum = 2; } 1069 $command = "$stacktool "; 1070 $command .= " -pretend " if defined $debug; 1071 $command .= " -dbname $dbname " if defined $dbname; 1072 $command .= " -definebyquery -select_skycell_id ${proj_cell}.% -select_filter $filter "; 1073 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1074 $command .= " -set_label ${label}.local -set_workdir $workdir -set_data_group $data_group "; 1075 $command .= " -min_num ${deep_minimum} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1076 $command .= " $warps "; 1077 1078 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1079 run(command => $command, verbose => $verbose); 1080 unless ($success) { 1081 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1082 &my_die("Unable to perform stacktool -definebyquery: $error_code :: $command", $lap_id); 1083 } 1084 my $stacks_made_deep = $mdcParser->parse_list(join "", @$stdout_buf) or 1085 &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, ""); 1086 1087 # Append deep stacks to stacks so we can get a complete count later. 1088 push @{ $stacks_made }, @{ $stacks_made_deep }; 1068 # ## Queue the "deep" stacks that will run locally. 1069 # my $deep_minimum = $maximum_stack_inputs + 1; 1070 # if ($deep_minimum < 2) { $deep_minimum = 2; } 1071 # $deep_minimum = 2; 1072 # $command = "$stacktool "; 1073 # $command .= " -pretend " if defined $debug; 1074 # $command .= " -dbname $dbname " if defined $dbname; 1075 # $command .= " -definebyquery -select_skycell_id ${proj_cell}.% -select_filter $filter "; 1076 # $command .= " -select_fwhm_major_max 10.0 -select_zpt_obs_min 25.85 -select_bg_max 425 "; 1077 # $command .= " -select_good_frac_min 0.5 -random 100 "; 1078 # # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1079 # $command .= " -set_label ${label}.local -set_workdir $workdir -set_data_group $data_group "; 1080 # $command .= " -min_num ${deep_minimum} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1081 # $command .= " $warps "; 1082 1083 # ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1084 # run(command => $command, verbose => $verbose); 1085 # unless ($success) { 1086 # $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1087 # &my_die("Unable to perform stacktool -definebyquery: $error_code :: $command", $lap_id); 1088 # } 1089 # my $stacks_made_deep = $mdcParser->parse_list(join "", @$stdout_buf) or 1090 # &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, ""); 1091 1092 # # Append deep stacks to stacks so we can get a complete count later. 1093 # push @{ $stacks_made }, @{ $stacks_made_deep }; 1089 1094 1090 1095 ## Determine the sass_id so we can record it in the database. -
tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_run.pl
r37671 r37981 35 35 $job_cost{"chip"} = 150 / 60 / 60; 36 36 $job_cost{"warp"} = 110 / 60 / 60; 37 $job_cost{"stack"} = 1500 / 60 / 60;37 $job_cost{"stack"} = 2; # 1500 / 60 / 60; ## deep ~100 input stacks seem to take about 2 hours 38 38 $job_cost{"staticsky"} = 2; # really? avg time of 5720s? 39 39 … … 44 44 $job_subscription{"chip"} = 1; 45 45 $job_subscription{"warp"} = 1; 46 $job_subscription{"stack"} = 3;46 $job_subscription{"stack"} = 24; # This should reserve the entire node for stack. 47 47 $job_subscription{"staticsky"} = 3; 48 48 49 49 my $proc_per_node = 24; # processors per node 50 50 my $min_nodes = 1; # smallest allocation to ask for 51 my $max_nodes = 1000;# largest allocation to ask for51 my $max_nodes = 200; # largest allocation to ask for 52 52 my $min_time = 1; # shortest allocation to ask for 53 53 my $max_time = 8; # longest allocation to ask for … … 218 218 # Construct the moab command last, so we can use the job_index counter to estimate resources. Somehow. 219 219 my $proc_need = $job_index * $threads; # how many total processors do we need? 220 if ($stage eq "stack") { 221 $proc_need = $job_index; # Only for large stacks, however. 222 } 220 223 my $node_need = $proc_need / $proc_per_node; # this equals how many nodes? 221 224 my $time_need = $job_index * $job_cost{$stage}; # How many seconds will this take? -
tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_warp.pl
r37332 r37981 59 59 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 60 60 61 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"); 61 # For LANL-only version. 62 my @return_component_list = ("DBINFO.EXP", "PSWARP.CONFIG", "LOG.EXP", "PSWARP.OUTPUT.SOURCES", "PSPHOT.PSF.SKY.SAVE"); #, "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.VARIANCE", "PSWARP.OUTPUT.SOURCES","PSPHOT.PSF.SKY.SAVE","LOG.EXP"); 62 63 63 64 # STEP 0: Open output files -
tags/ipp-pv3-20140717/ippTools/share/stacktool_definebyquery_insert_random_part2.sql
r24664 r37981 4 4 -- Sort by the random number, and take the first N 5 5 -- to get a random set of N. 6 ORDER BY rnd_num6 ORDER BY good_frac DESC 7 7 LIMIT @RANDOM_LIMIT@ 8 8 ) AS randomWarps
Note:
See TracChangeset
for help on using the changeset viewer.
