summaryrefslogtreecommitdiffstats
path: root/dis/Field/field.c
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-20 21:55:11 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 21:55:11 -0400
commite2d933df44b7b387b41c8c7805393ad3857c4448 (patch)
tree35cbeee7b13ff92e3cb09e2bef5128a558ec39f1 /dis/Field/field.c
parenta32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (diff)
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'dis/Field/field.c')
-rw-r--r--dis/Field/field.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dis/Field/field.c b/dis/Field/field.c
index 900d47b..d028ee7 100644
--- a/dis/Field/field.c
+++ b/dis/Field/field.c
@@ -137,17 +137,17 @@ int main(int argc, char **argv) {
137 } 137 }
138 endTime = time(NULL); 138 endTime = time(NULL);
139 139
140 volatile int sumAll = 0; 140 volatile int _stop_optimizer = 0;
141 for (l = 0; l < n; l++) { 141 for (l = 0; l < n; l++) {
142 unsigned int ll; 142 unsigned int ll;
143 // fprintf(stdout, "%d subfields for token %d \n", token[l].subfields, l); 143 //fprintf(stdout, "%d subfields for token %d \n", token[l].subfields, l);
144 sumAll += token[l].subfields + l; 144 _stop_optimizer += token[l].subfields + l;
145 for (ll = 0; ll < token[l].subfields; ll++) { 145 for (ll = 0; ll < token[l].subfields; ll++) {
146 sumAll += ll + token[l].stat[ll].count + token[l].stat[ll].min + 146 _stop_optimizer += ll + token[l].stat[ll].count + token[l].stat[ll].min +
147 token[l].stat[ll].sum; 147 token[l].stat[ll].sum;
148 /*fprintf(stdout, "subfields %d:\tcount = %d\tmin= %x\tsum= %x\n", 148 //fprintf(stdout, "subfields %d:\tcount = %d\tmin= %x\tsum= %x\n",
149 ll, token[l].stat[ll].count, 149 // ll, token[l].stat[ll].count,
150 token[l].stat[ll].min, token[l].stat[ll].sum);*/ 150 // token[l].stat[ll].min, token[l].stat[ll].sum);*/
151 } 151 }
152 } 152 }
153 fprintf(stderr, "time for field stressmark = %f seconds.\n", 153 fprintf(stderr, "time for field stressmark = %f seconds.\n",