diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-21 17:51:21 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-21 17:51:21 -0500 |
commit | b917354f1522f020212765647d2ada20a275c41d (patch) | |
tree | 82d102a086670634f47a1c83b03c1095cc8f6f08 /gen/edf_generators.py | |
parent | f56f4982aa3db2c62e52cdff26d0f5caf5e8c7ab (diff) | |
parent | 424917db79a1e8855c5e867bcc602476899fa28e (diff) |
Merge branch 'wip-ecrts14-pgm' of ssh://rtsrv.cs.unc.edu/home/litmus/experiment-scripts into wip-ecrts14-pgm
Conflicts:
gen/edf_generators.py
gen/generator.py
Diffstat (limited to 'gen/edf_generators.py')
-rw-r--r-- | gen/edf_generators.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gen/edf_generators.py b/gen/edf_generators.py index 0e5cb03..e8507f6 100644 --- a/gen/edf_generators.py +++ b/gen/edf_generators.py | |||
@@ -85,6 +85,9 @@ class EdfPgmGenerator(gen.Generator): | |||
85 | gen.Generator._dist_option('depth_factor', ['pipeline'], | 85 | gen.Generator._dist_option('depth_factor', ['pipeline'], |
86 | ecrts14.NAMED_HEIGHT_FACTORS, | 86 | ecrts14.NAMED_HEIGHT_FACTORS, |
87 | 'Depth of graphs.'), | 87 | 'Depth of graphs.'), |
88 | gen.Generator._dist_option('clustering', ['L1', 'L2', 'L3', 'ALL'], | ||
89 | {}, | ||
90 | 'Clustering configurations'), | ||
88 | gen.Generator._dist_option('partitions', ['no_cache', 'parallel', 'cache_aware'], | 91 | gen.Generator._dist_option('partitions', ['no_cache', 'parallel', 'cache_aware'], |
89 | PARTITION_METHOD, | 92 | PARTITION_METHOD, |
90 | 'Partition methods.'), | 93 | 'Partition methods.'), |
@@ -108,7 +111,7 @@ class EdfPgmGenerator(gen.Generator): | |||
108 | gen.Generator._dist_option('task_util', ['uni-medium'], | 111 | gen.Generator._dist_option('task_util', ['uni-medium'], |
109 | NAMED_UTILIZATIONS, | 112 | NAMED_UTILIZATIONS, |
110 | 'Task utilization.'), | 113 | 'Task utilization.'), |
111 | gen.Generator._dist_option('polluters', False, | 114 | gen.Generator._dist_option('polluters', [False, True], |
112 | {}, | 115 | {}, |
113 | 'Polluters.'), | 116 | 'Polluters.'), |
114 | gen.Generator._dist_option('job_splitting', True, | 117 | gen.Generator._dist_option('job_splitting', True, |
@@ -247,6 +250,8 @@ class CflSplitPgmGenerator(EdfPgmGenerator): | |||
247 | else: | 250 | else: |
248 | assert False | 251 | assert False |
249 | 252 | ||
253 | exp_params['fan_in_cap'] = int(exp_params['fan_in_cap']) | ||
254 | |||
250 | dp.nr_clusters = cpus / cluster_sz | 255 | dp.nr_clusters = cpus / cluster_sz |
251 | assert dp.nr_clusters * cluster_sz == cpus | 256 | assert dp.nr_clusters * cluster_sz == cpus |
252 | 257 | ||
@@ -261,6 +266,7 @@ class CflSplitPgmGenerator(EdfPgmGenerator): | |||
261 | # compute split factor | 266 | # compute split factor |
262 | working_ts = ts | 267 | working_ts = ts |
263 | partitions = get_partitions(working_ts, dp.nr_clusters, cluster_sz) | 268 | partitions = get_partitions(working_ts, dp.nr_clusters, cluster_sz) |
264 | is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not dp.job_splitting) | 269 | do_splits = dp.job_splitting == 'True' |
270 | is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not do_splits) | ||
265 | 271 | ||
266 | return True, working_ts | 272 | return True, working_ts |