IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37981


Ignore:
Timestamp:
Mar 17, 2015, 2:55:55 PM (11 years ago)
Author:
watersc1
Message:

changes to enable the LAP W stacks to be constructed at LANL

Location:
tags/ipp-pv3-20140717
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140717/ippScripts/scripts/lap_science.pl

    r37788 r37981  
    10491049    $command .= " -dbname $dbname " if defined $dbname;
    10501050    $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 ";
    10511053#    $command .= " -select_label $label "; # Removed to allow exposure sharing to work
    10521054    $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} ";
    10541056    $command .= " $warps ";
    10551057
     
    10641066
    10651067    ##
    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 };
    10891094   
    10901095    ## Determine the sass_id so we can record it in the database.
  • tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_run.pl

    r37671 r37981  
    3535$job_cost{"chip"}   = 150 / 60 / 60;
    3636$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
    3838$job_cost{"staticsky"} = 2; # really?  avg time of 5720s?
    3939
     
    4444$job_subscription{"chip"}   = 1;
    4545$job_subscription{"warp"}   = 1;
    46 $job_subscription{"stack"}  = 3;
     46$job_subscription{"stack"}  = 24; # This should reserve the entire node for stack.
    4747$job_subscription{"staticsky"} = 3;
    4848
    4949my $proc_per_node = 24;                     # processors per node
    5050my $min_nodes     = 1;                      # smallest allocation to ask for
    51 my $max_nodes     = 1000;                   # largest allocation to ask for
     51my $max_nodes     = 200;                    # largest allocation to ask for
    5252my $min_time      = 1;                      # shortest allocation to ask for
    5353my $max_time      = 8;                      # longest allocation to ask for
     
    218218# Construct the moab command last, so we can use the job_index counter to estimate resources.  Somehow.
    219219my $proc_need = $job_index * $threads;       # how many total processors do we need?
     220if ($stage eq "stack") {
     221    $proc_need = $job_index;  # Only for large stacks, however.
     222}
    220223my $node_need = $proc_need / $proc_per_node; # this equals how many nodes?
    221224my $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  
    5959my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    6060
    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.
     62my @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");
    6263
    6364# STEP 0: Open output files
  • tags/ipp-pv3-20140717/ippTools/share/stacktool_definebyquery_insert_random_part2.sql

    r24664 r37981  
    44    -- Sort by the random number, and take the first N
    55    -- to get a random set of N.
    6     ORDER BY rnd_num
     6    ORDER BY good_frac DESC
    77    LIMIT @RANDOM_LIMIT@
    88) AS randomWarps
Note: See TracChangeset for help on using the changeset viewer.