Exemplo n.º 1
0
void SNetDistribInit(int argc, char **argv, snet_info_t *info)
{
  int *counter = SNetMemAlloc(sizeof(int));
  snet_dest_t *dest = SNetMemAlloc(sizeof(snet_dest_t));;

  *counter = 0;

  dest->node = 0;
  dest->dest = *counter;
  dest->parent = 0;
  dest->parentNode = 0;
  dest->dynamicIndex = 0;
  dest->dynamicLoc = 0;

  prevDest = SNetInfoCreateTag();
  SNetInfoSetTag(info, prevDest, (uintptr_t) dest,
                 (void* (*)(void*)) &SNetDestCopy);

  infoCounter = SNetInfoCreateTag();
  SNetInfoSetTag(info, infoCounter, (uintptr_t) counter, NULL);

  SNetDistribImplementationInit(argc, argv, info);

  SNetReferenceInit();
  SNetOutputManagerInit();
  SNetInputManagerInit();
}
Exemplo n.º 2
0
void SNetDistribInit(int argc, char **argv, snet_info_t *info)
{
  (void) argc; /* NOT USED */
  (void) argv; /* NOT USED */
  (void) info; /* NOT USED */
  node_location = ROOT_LOCATION;
  SNetReferenceInit();
}
Exemplo n.º 3
0
void SNetDistribInit(int argc, char **argv, snet_info_t *info)
{
  //node_location = 0;
  node_location = SCCGetNodeID(); // physical location of core
  SNetReferenceInit();
}
Exemplo n.º 4
0
/* Initialize distributed computing. Called by SNetInRun in networkinterface.c. */
void SNetDistribInit(int argc, char **argv, snet_info_t *info)
{
  SNetReferenceInit();
}