diff options
Diffstat (limited to 'run_exps.py')
-rwxr-xr-x | run_exps.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/run_exps.py b/run_exps.py index 8812bc6..3efb09d 100755 --- a/run_exps.py +++ b/run_exps.py | |||
@@ -114,9 +114,11 @@ def load_experiment(sched_file, scheduler, duration, param_file, out_dir): | |||
114 | run_exp(sched_file, schedule, scheduler, kernel, duration, work_dir, out_dir) | 114 | run_exp(sched_file, schedule, scheduler, kernel, duration, work_dir, out_dir) |
115 | 115 | ||
116 | # Save parameters used to run experiment in out_dir | 116 | # Save parameters used to run experiment in out_dir |
117 | # Cycles is saved here for accurate overhead calculations later | ||
117 | out_params = dict(params.items() + | 118 | out_params = dict(params.items() + |
118 | [(conf.PARAMS['sched'], scheduler), | 119 | [(conf.PARAMS['sched'], scheduler), |
119 | (conf.PARAMS['dur'], duration)]) | 120 | (conf.PARAMS['dur'], duration), |
121 | (conf.PARAMS['cycles'], lu.cpu_freq())]) | ||
120 | with open("%s/%s" % (out_dir, conf.DEFAULTS['params_file']), 'w') as f: | 122 | with open("%s/%s" % (out_dir, conf.DEFAULTS['params_file']), 'w') as f: |
121 | f.write(str(out_params)) | 123 | f.write(str(out_params)) |
122 | 124 | ||