Changeset 3b206d8
 Timestamp:
 11/14/18 09:09:51 (4 years ago)
 Branches:
 develop
 Children:
 43aec21
 Parents:
 8865858
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

examples/tutorial/ipdistparallel.c
r8865858 r3b206d8 29 29 float src[4][256]; 30 30 float dst[4][256]; 31 double mean_src[4];32 double mean_dst[4];33 double stdev_src[4];34 double stdev_dst[4];35 double variance_src[4];36 double variance_dst[4];37 double variation_src[4];38 double variation_dst[4];31 //double mean_src[4]; 32 //double mean_dst[4]; 33 //double stdev_src[4]; 34 //double stdev_dst[4]; 35 //double variance_src[4]; 36 //double variance_dst[4]; 37 //double variation_src[4]; 38 //double variation_dst[4]; 39 39 struct addr_rank *rank_src[4]; 40 40 struct addr_rank *rank_dst[4]; … … 62 62 uint64_t tickrate; 63 63 64 char *stats_outputdir = " /home/jcv9/output/";64 char *stats_outputdir = ""; 65 65 /* Calculate and plot the percentage change from the previous plot */ 66 66 int stats_percentage_change = 0; 67 int stats_ranking = 1;68 69 67 70 68 /************************************************************************* … … 131 129 132 130 /* RANKING SYSTEM */ 133 if(stats_ranking) { 134 for(i=0;i<4;i++) { 135 tally>stats>rank_src[i] = rank_new(0, tally>src[i][0]); 136 tally>stats>rank_dst[i] = rank_new(0, tally>dst[i][0]); 137 138 for(j=1;j<256;j++) { 139 /* Push everything into the priority queue 140 * each item will be popped off in the correct order */ 141 push(&tally>stats>rank_src[i], j, tally>src[i][j]); 142 push(&tally>stats>rank_dst[i], j, tally>dst[i][j]); 143 } 144 } 145 } 146 147 148 /* This will all result in overflows, needs to be a rolling average?? stdev etc */ 131 for(i=0;i<4;i++) { 132 tally>stats>rank_src[i] = rank_new(0, tally>src[i][0]); 133 tally>stats>rank_dst[i] = rank_new(0, tally>dst[i][0]); 134 for(j=1;j<256;j++) { 135 /* Push everything into the priority queue 136 * each item will be popped off in the correct order */ 137 push(&tally>stats>rank_src[i], j, tally>src[i][j]); 138 push(&tally>stats>rank_dst[i], j, tally>dst[i][j]); 139 } 140 } 141 142 143 144 /* This will all result in overflows, needs to be a rolling average?? stdev etc */ 149 145 /* Calculate mean */ 150 146 // for(i=0;i<4;i++) { … … 390 386 } 391 387 /* Stats related varibles */ 392 tally>stats>mean_src[i] = 0;393 tally>stats>mean_dst[i] = 0;394 tally>stats>stdev_src[i] = 0;395 tally>stats>stdev_dst[i] = 0;396 tally>stats>variance_src[i] = 0;397 tally>stats>variance_dst[i] = 0;398 tally>stats>variation_src[i] = 0;399 tally>stats>variation_dst[i] = 0;388 //tally>stats>mean_src[i] = 0; 389 //tally>stats>mean_dst[i] = 0; 390 //tally>stats>stdev_src[i] = 0; 391 //tally>stats>stdev_dst[i] = 0; 392 //tally>stats>variance_src[i] = 0; 393 //tally>stats>variance_dst[i] = 0; 394 //tally>stats>variation_src[i] = 0; 395 //tally>stats>variation_dst[i] = 0; 400 396 } 401 397 tally>lastkey = 0; … … 595 591 } 596 592 /* Clear all stats related data */ 597 tally>stats>mean_src[i] = 0;598 tally>stats>mean_dst[i] = 0;599 tally>stats>stdev_src[i] = 0;600 tally>stats>stdev_dst[i] = 0;601 tally>stats>variance_src[i] = 0;602 tally>stats>variance_dst[i] = 0;603 tally>stats>variation_src[i] = 0;604 tally>stats>variation_dst[i] = 0;593 //tally>stats>mean_src[i] = 0; 594 //tally>stats>mean_dst[i] = 0; 595 //tally>stats>stdev_src[i] = 0; 596 //tally>stats>stdev_dst[i] = 0; 597 //tally>stats>variance_src[i] = 0; 598 //tally>stats>variance_dst[i] = 0; 599 //tally>stats>variation_src[i] = 0; 600 //tally>stats>variation_dst[i] = 0; 605 601 606 602 }
Note: See TracChangeset
for help on using the changeset viewer.