diff options
Diffstat (limited to 'run_exps.py')
-rwxr-xr-x | run_exps.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/run_exps.py b/run_exps.py index 19dbad1..8812bc6 100755 --- a/run_exps.py +++ b/run_exps.py | |||
@@ -26,7 +26,7 @@ def parse_args(): | |||
26 | parser.add_option('-d', '--duration', dest='duration', type='int', | 26 | parser.add_option('-d', '--duration', dest='duration', type='int', |
27 | help='duration (seconds) of tasks') | 27 | help='duration (seconds) of tasks') |
28 | parser.add_option('-o', '--out-dir', dest='out_dir', | 28 | parser.add_option('-o', '--out-dir', dest='out_dir', |
29 | help='directory for data output', default="run-data") | 29 | help='directory for data output', default=("%s/run-data"%os.getcwd())) |
30 | parser.add_option('-p', '--params', dest='param_file', | 30 | parser.add_option('-p', '--params', dest='param_file', |
31 | help='file with experiment parameters') | 31 | help='file with experiment parameters') |
32 | parser.add_option('-c', '--schedule-file', dest='sched_file', | 32 | parser.add_option('-c', '--schedule-file', dest='sched_file', |
@@ -47,7 +47,7 @@ def convert_data(data): | |||
47 | r"\s*{\s*(?P<CONTENT>.*?)\s*?}$)|" | 47 | r"\s*{\s*(?P<CONTENT>.*?)\s*?}$)|" |
48 | r"(?P<SPIN>^" | 48 | r"(?P<SPIN>^" |
49 | r"(?P<TYPE>\w+?spin)?\s*" | 49 | r"(?P<TYPE>\w+?spin)?\s*" |
50 | r"(?P<ARGS>[\w\-_\d\. ]+)\s*$)", | 50 | r"(?P<ARGS>[\w\-_\d\. \=]+)\s*$)", |
51 | re.S|re.I|re.M) | 51 | re.S|re.I|re.M) |
52 | 52 | ||
53 | procs = [] | 53 | procs = [] |
@@ -134,8 +134,8 @@ def run_exp(name, schedule, scheduler, kernel, duration, work_dir, out_dir): | |||
134 | proc_entries = [] | 134 | proc_entries = [] |
135 | executables = [] | 135 | executables = [] |
136 | 136 | ||
137 | if kernel and not lu.uname_matches(kernel): | 137 | # if kernel and not lu.uname_matches(kernel): |
138 | raise InvalidKernel(kernel) | 138 | # raise InvalidKernel(kernel) |
139 | 139 | ||
140 | # Parse values for proc entries | 140 | # Parse values for proc entries |
141 | for entry_conf in schedule['proc']: | 141 | for entry_conf in schedule['proc']: |
@@ -196,7 +196,7 @@ def main(): | |||
196 | 196 | ||
197 | for exp in args: | 197 | for exp in args: |
198 | path = "%s/%s" % (os.getcwd(), exp) | 198 | path = "%s/%s" % (os.getcwd(), exp) |
199 | out_dir = "%s/%s" % (out_base, exp) | 199 | out_dir = "%s/%s" % (out_base, os.path.split(exp.strip('/'))[1]) |
200 | 200 | ||
201 | if not os.path.exists(path): | 201 | if not os.path.exists(path): |
202 | raise IOError("Invalid experiment: %s" % path) | 202 | raise IOError("Invalid experiment: %s" % path) |