aboutsummaryrefslogtreecommitdiffstats
path: root/run_exps.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-11-20 16:02:40 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2012-11-20 16:02:40 -0500
commit41c867480f1e20bd3b168258ed71450499ea6ccf (patch)
treeb47963b417ba9bdd53f03d5c621b72bcca297ef6 /run_exps.py
parent1abea5f67c2c70053af0a59db715a210df2e0bef (diff)
Removed 2-step parse for overheads.
Diffstat (limited to 'run_exps.py')
-rwxr-xr-xrun_exps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_exps.py b/run_exps.py
index 3efb09d..1d2cc2e 100755
--- a/run_exps.py
+++ b/run_exps.py
@@ -67,8 +67,8 @@ def convert_data(data):
67 return {'proc' : procs, 'spin' : spins} 67 return {'proc' : procs, 'spin' : spins}
68 68
69def fix_paths(schedule, exp_dir, sched_file): 69def fix_paths(schedule, exp_dir, sched_file):
70 """Replace relative paths of command line arguments with absolute ones."""
70 for (idx, (spin, args)) in enumerate(schedule['spin']): 71 for (idx, (spin, args)) in enumerate(schedule['spin']):
71 # Replace relative paths (if present) with absolute ones
72 for arg in re.split(" +", args): 72 for arg in re.split(" +", args):
73 abspath = "%s/%s" % (exp_dir, arg) 73 abspath = "%s/%s" % (exp_dir, arg)
74 if os.path.exists(abspath): 74 if os.path.exists(abspath):
@@ -136,8 +136,8 @@ def run_exp(name, schedule, scheduler, kernel, duration, work_dir, out_dir):
136 proc_entries = [] 136 proc_entries = []
137 executables = [] 137 executables = []
138 138
139 # if kernel and not lu.uname_matches(kernel): 139 if kernel and not lu.uname_matches(kernel):
140 # raise InvalidKernel(kernel) 140 raise InvalidKernel(kernel)
141 141
142 # Parse values for proc entries 142 # Parse values for proc entries
143 for entry_conf in schedule['proc']: 143 for entry_conf in schedule['proc']: