12
int main(int argc, char **argv)
16
double t0,t1,tnbget=0,tnbwait=0,t2=0;
21
fprintf(stderr,"You must use more than 1 process for this test. Exiting gently.");
25
myptrs = (double **)malloc(sizeof(double *)*nprocs);
27
ARMCI_Malloc((void **)myptrs,LOOP*sizeof(double));
31
ARMCI_Get(myptrs[me]+i,myptrs[me+1]+i,sizeof(double),me+1);
35
ARMCI_Get(myptrs[me]+i,myptrs[me+1]+i,sizeof(double),me+1);
38
printf("\nGet Latency=%lf\n",1e6*(t1-t0)/LOOP);fflush(stdout);
42
ARMCI_INIT_HANDLE(&nbh);
44
ARMCI_NbGet(myptrs[me]+i,myptrs[me+1]+i,sizeof(double),me+1,&nbh);
51
printf("\nNb Get Latency=%lf Nb Wait=%lf\n",1e6*tnbget/LOOP,1e6*tnbwait/LOOP);fflush(stdout);