Changeset 36577
- Timestamp:
- Mar 6, 2014, 4:42:10 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140206/Ohana/src
- Files:
-
- 8 edited
-
libdvo/include/dvo.h (modified) (2 diffs)
-
libdvo/src/RegionHostTable.c (modified) (5 diffs)
-
relastro/src/relastro_parallel_images.c (modified) (2 diffs)
-
relastro/src/share_images_pos.c (modified) (1 diff)
-
relastro/src/share_mean_pos.c (modified) (1 diff)
-
relphot/src/relphot_parallel_images.c (modified) (2 diffs)
-
relphot/src/share_image_mags.c (modified) (1 diff)
-
relphot/src/share_mean_mags.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140206/Ohana/src/libdvo/include/dvo.h
r36576 r36577 311 311 off_t *imseq; 312 312 313 int *neighbors; 314 int Nneighbors; 313 int *neighbors; // list of neighbor index values 314 int Nneighbors; // number of neighbors 315 char isNeighbor; // TRUE if I am a neighbor to the current region host 315 316 } RegionHostInfo; 316 317 … … 906 907 int RegionHostTableWaitJobs (RegionHostTable *regionHosts, char *file, int lineno); 907 908 int RegionHostTableWaitJobsGetIO (RegionHostTable *regionHosts, char *file, int lineno, int VERBOSE); 909 int RegionHostFindNeighbors (RegionHostTable *table, int Nhost); 908 910 909 911 # endif // DVO_H -
branches/eam_branches/ipp-20140206/Ohana/src/libdvo/src/RegionHostTable.c
r36576 r36577 30 30 hosts[i].neighbors = NULL; 31 31 hosts[i].Nneighbors = 0; 32 hosts[i].isNeighbor = FALSE; 32 33 } 33 34 return; … … 170 171 } 171 172 172 for (i = 0; i < table->Nhosts; i++) {173 RegionHostFindNeighbors (table, i);174 }175 176 173 free (filename); 177 174 fclose (f); … … 180 177 181 178 int RegionHostFindNeighbors (RegionHostTable *table, int Nhost) { 179 180 int i; 182 181 183 182 // given a specific host (by table sequence), find all of its neighbors … … 192 191 193 192 if (i == Nhost) continue; 194 RegionHostInfo *alt host = &table->hosts[i];193 RegionHostInfo *altHost = &table->hosts[i]; 195 194 196 195 int onBorder; … … 226 225 myhost->Nneighbors ++; 227 226 REALLOCATE (myhost->neighbors, int, myhost->Nneighbors + 1); 227 altHost->isNeighbor = TRUE; 228 228 } 229 229 return TRUE; -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/relastro_parallel_images.c
r36564 r36577 19 19 // load the RegionTable (UserRegion should not be used at this level) 20 20 RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, REGION_FILE); 21 int myHost = regionHosts->index[REGION_HOST_ID]; 22 RegionHostFindNeighbors (regionHosts, myHost); 21 23 22 24 // load the subset images belonging to this host … … 112 114 113 115 // this is a checkpoint to make sure all hosts have finished the loop above 114 int myHost = regionHosts->index[REGION_HOST_ID];115 116 char *loopsyncfile = make_filename (CATDIR, regionHosts->hosts[myHost].hostname, REGION_HOST_ID, "loop.sync"); 116 117 update_sync_file (loopsyncfile, 0); -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/share_images_pos.c
r36565 r36577 53 53 for (i = 0; i < regionHosts->Nhosts; i++) { 54 54 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 55 // XXX add neighbor check? : if (not_neighbor(host[i])) continue;55 if ((REGION_HOST_ID > -1) && !regionHosts->hosts[i].isNeighbor) continue; 56 56 57 57 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagepos.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/share_mean_pos.c
r36574 r36577 66 66 67 67 for (i = 0; i < regionHosts->Nhosts; i++) { 68 // if (not_neighbor(host[i])) continue;69 68 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 69 if ((REGION_HOST_ID > -1) && !regionHosts->hosts[i].isNeighbor) continue; 70 70 71 71 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanpos.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot_parallel_images.c
r36558 r36577 21 21 // load the RegionTable (UserRegion should not be used at this level) 22 22 RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, REGION_FILE); 23 int myHost = regionHosts->index[REGION_HOST_ID]; 24 RegionHostFindNeighbors (regionHosts, myHost); 23 25 24 26 // load the subset images belonging to this host … … 117 119 118 120 // this is a checkpoint to make sure all hosts have finished the loop above 119 int myHost = regionHosts->index[REGION_HOST_ID];120 121 char *loopsyncfile = make_filename (CATDIR, regionHosts->hosts[myHost].hostname, REGION_HOST_ID, "loop.sync"); 121 122 update_sync_file (loopsyncfile, 0); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_image_mags.c
r36549 r36577 53 53 for (i = 0; i < regionHosts->Nhosts; i++) { 54 54 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 55 // XXX add neighbor check? : if (not_neighbor(host[i])) continue;55 if ((REGION_HOST_ID > -1) && !regionHosts->hosts[i].isNeighbor) continue; 56 56 57 57 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_mean_mags.c
r36558 r36577 77 77 // if (not_neighbor(host[i])) continue; 78 78 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 79 if ((REGION_HOST_ID > -1) && !regionHosts->hosts[i].isNeighbor) continue; 79 80 80 81 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.sync");
Note:
See TracChangeset
for help on using the changeset viewer.
