Changeset 35416 for trunk/Ohana/src/opihi/dvo/dvo_host_utils.c
- Timestamp:
- Apr 19, 2013, 4:31:05 PM (13 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/opihi
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130307/Ohana/src/opihi (added) merged: 35316,35327,35339-35340,35342,35347,35350,35355,35401,35412
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/dvo/dvo_host_utils.c
r35109 r35416 8 8 # define DIE(WHO,MSG) { perror(WHO); myAbort(MSG); } 9 9 10 int HostTableLaunchJobs ( HostTable *table, char *basecmd, char *options, int VERBOSE) {10 int HostTableLaunchJobs (SkyList *sky, HostTable *table, char *basecmd, char *options, int VERBOSE) { 11 11 12 12 char uniquer[12]; … … 35 35 36 36 int top_status = TRUE; 37 int i ;37 int i, j; 38 38 for (i = 0; i < table->Nhosts; i++) { 39 40 if (sky && (sky->Nregions < table->Nhosts)) { 41 // do any of the regions want this host? 42 int wantThisHost = FALSE; 43 for (j = 0; j < sky->Nregions; j++) { 44 if (HostTableTestHost (sky->regions[j], table->hosts[i].hostID)) { 45 wantThisHost = TRUE; 46 break; 47 } 48 } 49 if (!wantThisHost) { 50 // fprintf (stderr, "skip host %s\n", table->hosts[i].hostname); 51 continue; 52 } 53 // fprintf (stderr, "not skip host %s\n", table->hosts[i].hostname); 54 } 39 55 40 56 // ensure that the paths are absolute path names … … 88 104 // an alternative ending step ignores the result files and instead saves the names into 89 105 // the list 'result:n' for the user to access as desired 90 int HostTableParallelOps ( int argc, char **argv, char *ResultFile, int ReadVectors, int Nelements, int VERBOSE) {106 int HostTableParallelOps (SkyList *sky, int argc, char **argv, char *ResultFile, int ReadVectors, int Nelements, int VERBOSE) { 91 107 92 108 int i; 93 109 94 // load the list of hosts95 SkyTable *sky = GetSkyTable();96 if (!sky) {97 gprint (GP_ERR, "failed to load sky table for database\n");98 return FALSE;99 }110 // XX // load the list of hosts 111 // XX SkyTable *sky = GetSkyTable(); 112 // XX if (!sky) { 113 // XX gprint (GP_ERR, "failed to load sky table for database\n"); 114 // XX return FALSE; 115 // XX } 100 116 101 117 char *tmppath = GetCATDIR (); … … 145 161 146 162 // launch this command remotely 147 HostTableLaunchJobs ( table, basecmd, options, VERBOSE);163 HostTableLaunchJobs (sky, table, basecmd, options, VERBOSE); 148 164 free (options); 149 165 free (basecmd); … … 183 199 184 200 if (table->hosts[i].status) continue; 201 if (!table->hosts[i].pid) continue; 185 202 186 203 if (ReadVectors) {
Note:
See TracChangeset
for help on using the changeset viewer.
