IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2013, 6:21:45 AM (13 years ago)
Author:
eugene
Message:

modify mmatch to provide host information needed to spawn jobs only on the appropriate machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/Ohana/src/opihi/dvo/remote.c

    r35327 r35401  
    6161  }
    6262
     63  // load the list of hosts
     64  SkyTable *sky = GetSkyTable();
     65  if (!sky) {
     66    gprint (GP_ERR, "failed to load sky table for database\n");
     67    return FALSE;
     68  }
     69  SkyList *skylist = NULL;
     70  ALLOCATE (skylist, SkyList, 1);
     71  skylist[0].Nregions = sky[0].Nregions;
     72  strcpy (skylist[0].hosts, sky[0].hosts);
     73
    6374  // strip of the 'remote' and send the remaining arguments to the remote machine
    64   int status = HostTableParallelOps (NULL, argc - 1, &argv[1], NULL, ReadVectors, 0, VERBOSE);
     75  int status = HostTableParallelOps (skylist, argc - 1, &argv[1], NULL, ReadVectors, 0, VERBOSE);
     76  free (skylist);
    6577  return status;
    6678}
Note: See TracChangeset for help on using the changeset viewer.