9 #include "../Applications/TwitterEdge.h" 17 #define L1 4096 // maximum entries of edges+parents combined to fit 32 KB 25 class twitter_mult :
public std::binary_function<ParentType, TwitterEdge, ParentType>
41 int main(
int argc,
char* argv[])
44 MPI_Init(&argc, &argv);
45 MPI_Comm_size(MPI_COMM_WORLD,&nprocs);
46 MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
61 MPI_Barrier(MPI_COMM_WORLD);
62 double t1 = MPI_Wtime();
65 struct tm * timeinfo = localtime( &now);
66 timeinfo->tm_mon = timeinfo->tm_mon-1;
67 time_t monthago = mktime(timeinfo);
69 for(
int i=0; i<
REPEAT; ++i)
72 MPI_Barrier(MPI_COMM_WORLD);
73 double t2 = MPI_Wtime();
77 cout<<
"EWiseApply Iterations finished"<<endl;
79 double teps = (nprocs*len*
REPEAT) / (time * 1000000);
80 printf(
"%.6lf seconds elapsed for %d iterations on vector of length %lld\n", time, REPEAT, nprocs*len);
81 printf(
"%.6lf million TEPS per second\n", teps);
void EWiseApply(const FullyDistVec< IT, NT2 > &other, _BinaryOperation __binary_op, _BinaryPredicate _do_op, const bool useExtendedBinOp)
void iota(IT globalsize, NT first)
int main(int argc, char *argv[])