summaryrefslogtreecommitdiffstats
path: root/baseline/source/adpcm_enc
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-17 00:52:09 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-17 00:52:09 -0400
commit917499f6257ac51c05e8302af877d56a22f28cb5 (patch)
tree880ad3fed41cfa521deb96b81a5fb89227a31e81 /baseline/source/adpcm_enc
parent6ea9939e0610a809f6f47d13ec68df00d1ca0afc (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/adpcm_enc')
-rw-r--r--baseline/source/adpcm_enc/adpcm_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/baseline/source/adpcm_enc/adpcm_enc.c b/baseline/source/adpcm_enc/adpcm_enc.c
index d9fb09a..464768f 100644
--- a/baseline/source/adpcm_enc/adpcm_enc.c
+++ b/baseline/source/adpcm_enc/adpcm_enc.c
@@ -747,7 +747,7 @@ void _Pragma( "entrypoint" ) adpcm_enc_main(void)
747int main(int argc, char **argv) 747int main(int argc, char **argv)
748{ 748{
749 SET_UP 749 SET_UP
750 for(jobsComplete=-1; jobsComplete<maxJobs; jobsComplete++){ 750 for(jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){
751 START_LOOP 751 START_LOOP
752 adpcm_enc_init(); 752 adpcm_enc_init();
753 adpcm_enc_main(); 753 adpcm_enc_main();