IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36503


Ignore:
Timestamp:
Feb 11, 2014, 6:15:41 AM (12 years ago)
Author:
eugene
Message:

working on relphot -parallel-regions

Location:
branches/eam_branches/ipp-20140206/Ohana/src
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140206/Ohana/src/libdvo/include/dvo.h

    r36490 r36503  
    284284  short *index;
    285285} HostTable;
     286
     287// A RegionHost processes data for some region in parallel with other regions
     288typedef struct {
     289  double Rmin;
     290  double Rmax;
     291  double Dmin;
     292  double Dmax;
     293  int hostID;                 // remove machine ID in SkyTable
     294  int stdio[3];               // fd's for communication with the remote host
     295  int pid;                    // remote process ID
     296  char *hostname;
     297  ImageSubset *image;
     298  int line_numbers;
     299} RegionHostInfo;
     300
     301typedef struct {
     302  int Nhosts;
     303  RegionHostInfo *hosts;
     304  short *index;
     305} RegionHostTable;
    286306
    287307// special-case function:
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/doc/parallel.txt

    r33651 r36503  
     1
     22014.02.06
     3
     4** a single region-level host owns images for which the center lands
     5   in its region.
     6
     7** it owns detections which come from images which it owns
     8   
     9** it owns objects which land in its region
     10
     11Extending parallel relphot processing to split the sky (and images)
     12into regions, each of which runs in parallel at the same time:
     13
     14Top Level (relphot -parallel-images):
     15 * define regions of the sky -> hosts
     16 * load images, assign to hosts
     17 * launch region-level jobs on remote hosts
     18
     19 Region Level (relphot -parallel-images-region)
     20  * load my image subset table
     21  * request objects and detections for my skyregion
     22  * match images & objects, etc
     23
     24  * update my image parameters
     25  * update my detections
     26  * write out detections
     27  * load detections from my border hosts
     28  * match to my objects
     29  * update my objects
     30  * write out objects
     31  * load objects from my border hosts
     32  * update images
     33    (iterate N times)
     34  * write out image parameters
     35
     36Top Level
     37  * read image parameters, update
     38  * update objects
    139
    2402012.02.13
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/args.c

    r36491 r36503  
    354354  }
    355355
     356  ParallelImages = FALSE;
     357  if ((N = get_argument (argc, argv, "-parallel-images"))) {
     358    remove_argument (N, &argc, argv);
     359    ParallelImages = TRUE;
     360  }
     361
    356362  if (UpdateAverages && (argc == 1)) return TRUE;
    357363  if (argc != 2) relphot_usage ();
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot.c

    r35416 r36503  
    2222  }
    2323
     24  /* the object analysis is a separate process iterating over catalogs */
     25  if (ParallelImages) {
     26    relphot_parallel_images ();
     27    exit (0);
     28  }
     29
     30  /* the object analysis is a separate process iterating over catalogs */
     31  if (ParallelRegion) {
     32    relphot_parallel_region ();
     33    exit (0);
     34  }
     35
    2436  relphot_images ();
    2537
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot_images.c

    r35806 r36503  
    244244  if (!UPDATE) exit (0);
    245245 
    246   /* load catalog data from region files, update Mrel include all data */
     246  /* Load catalog data from region files, update Mrel include all data.  In a parallel
     247     context, this function writes the image parameters as a subset table for the remote
     248     clients */
    247249  reload_catalogs (skylist, flatcorr, 0, NULL);
    248250  MARKTIME("-- updated all catalogs: %f sec\n", dtime);
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/setMrelCatalog.c

    r36491 r36503  
    259259      list[N]  = Msys - Mcal - Mmos - Mgrid;
    260260
     261      // NOTE:
     262      // Msys is measure[i].M + zp corrections
     263      // Mcal is image[j].Mcal
     264      // Mmos and Mgrid are offsets for mosaic and grid
     265
    261266      // up-weight the ubercal values (or convergence can take a long time...)
    262267      if (measureT[k].dbFlags & ID_MEAS_PHOTOM_UBERCAL) {
Note: See TracChangeset for help on using the changeset viewer.