PaCO++  0.05
paco_direct_comScheduling.cc
Go to the documentation of this file.
2 
4 
5 paco_comSchedule_direct::paco_comSchedule_direct(int rank, int max, unsigned *local_com_vector,
6  void** info_vector[])
7 {
8  _myrank=rank;
9  _dst=new unsigned[max];
10  _len=new unsigned[max];
11  _inf=new void*[max];
12  unsigned cur=0;
13  for(int i=0;i<max; i++) {
14  if (local_com_vector[i]>0) {
15  _dst[cur]=i;
16  _len[cur]=local_com_vector[i];
17  _inf[cur]=info_vector[i];
18  cur++;
19  }
20  }
21  _nbelement=cur;
22 }
23 
25 {
26  delete _len;
27  delete _dst;
28  delete _inf;
29 }
30 
32 
34 {
35 }
36 
39  PaCO::PacoTopology_t* srctopo, PaCO::PacoTopology_t* dsttopo,
40  unsigned **com_matrix, void** info_vector[])
41 {
42  // cerr << __FUNCTION__ << " : rank: "<<rank<<" srvtopo: "<<dsttopo->total<<endl;
43  return new paco_comSchedule_direct(rank, dsttopo->total, com_matrix[rank], info_vector);
44 }
paco_comSchedule_direct(int rank, int max, unsigned *loca_com_vector, void **info_vector[])
paco_comSchedule * computeScheduling(unsigned rank, PaCO::PacoTopology_t *srctopo, PaCO::PacoTopology_t *dsttopo, unsigned **com_matrix, void **info_vector[])
unsigned long total
Definition: PaCO++.idl:35