diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-23 16:29:00 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-23 16:29:00 +0200 |
commit | 1fd19b03214ab2dae6e59d487fd0683f55d67ffa (patch) | |
tree | eb662d6151d8a0bae42128c52f65c2a798956547 /TS/host/app.c | |
parent | fa6c70a44fc56cc50370e57c460dd61e8f127b51 (diff) |
TS host: Move streamp to beginning of kernel loop
Otherwise, AspectC++ kernel annotations do not work properly
Diffstat (limited to 'TS/host/app.c')
-rw-r--r-- | TS/host/app.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/TS/host/app.c b/TS/host/app.c index cb19c4b..bfa14df 100644 --- a/TS/host/app.c +++ b/TS/host/app.c @@ -224,6 +224,15 @@ int main(int argc, char **argv) for (int rep = 0; rep < p.n_warmup + p.n_reps; rep++) { + if (rep >= p.n_warmup) { + start(&timer, 6, 0); + } + streamp(tSeries, AMean, ASigma, ts_size - query_length - 1, + query, query_length, query_mean, query_std); + if (rep >= p.n_warmup) { + stop(&timer, 6); + } + #if WITH_ALLOC_OVERHEAD if (rep >= p.n_warmup) { start(&timer, 0, 0); @@ -396,15 +405,6 @@ int main(int argc, char **argv) #endif #endif - if (rep >= p.n_warmup) { - start(&timer, 6, 0); - } - streamp(tSeries, AMean, ASigma, ts_size - query_length - 1, - query, query_length, query_mean, query_std); - if (rep >= p.n_warmup) { - stop(&timer, 6); - } - int status = (minHost == result.minValue); if (status) { printf("[" ANSI_COLOR_GREEN "OK" ANSI_COLOR_RESET |