diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-17 00:52:09 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-17 00:52:09 -0400 |
| commit | 917499f6257ac51c05e8302af877d56a22f28cb5 (patch) | |
| tree | 880ad3fed41cfa521deb96b81a5fb89227a31e81 /baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c | |
| parent | 6ea9939e0610a809f6f47d13ec68df00d1ca0afc (diff) | |
Cleanup in extra.h for non-paired benchmarks
- No parameter or output format changes
- Better error messages
- Auto-detect core
- Fix off-by-one error in job counting
- Explicitly invoke the scheduler with sched_yield() between jobs
so that there's less work to do when (if) the scheduling timer
interrupt comes around. (This has a surprisingly significant
impact on timings.)
Diffstat (limited to 'baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c')
| -rw-r--r-- | baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c b/baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c index 7bef7ab..278725c 100644 --- a/baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c +++ b/baseline/source/cjpeg_wrbmp/cjpeg_wrbmp.c | |||
| @@ -211,7 +211,7 @@ int cjpeg_wrbmp_return() | |||
| 211 | int main(int argc, char **argv) | 211 | int main(int argc, char **argv) |
| 212 | { | 212 | { |
| 213 | SET_UP | 213 | SET_UP |
| 214 | for (jobsComplete=-1; jobsComplete<maxJobs; jobsComplete++){ | 214 | for (jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){ |
| 215 | START_LOOP | 215 | START_LOOP |
| 216 | cjpeg_wrbmp_init(); | 216 | cjpeg_wrbmp_init(); |
| 217 | cjpeg_wrbmp_main(); | 217 | cjpeg_wrbmp_main(); |
