From 424917db79a1e8855c5e867bcc602476899fa28e Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Sat, 18 Jan 2014 16:20:45 -0500 Subject: Allow polluter/splitting span the same task set --- gen/edf_generators.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gen/edf_generators.py') diff --git a/gen/edf_generators.py b/gen/edf_generators.py index 7a30b4f..33f52be 100644 --- a/gen/edf_generators.py +++ b/gen/edf_generators.py @@ -84,6 +84,9 @@ class EdfPgmGenerator(gen.Generator): gen.Generator._dist_option('depth_factor', ['uni-medium'], ecrts14.NAMED_HEIGHT_FACTORS, 'Depth of graphs.'), + gen.Generator._dist_option('clustering', ['L1', 'L2', 'L3', 'ALL'], + {}, + 'Clustering configurations'), gen.Generator._dist_option('partitions', ['no_cache', 'parallel', 'cache_aware'], PARTITION_METHOD, 'Partition methods.'), @@ -105,13 +108,10 @@ class EdfPgmGenerator(gen.Generator): gen.Generator._dist_option('task_util', ['uni-light'], NAMED_UTILIZATIONS, 'Task utilization.'), - gen.Generator._dist_option('polluters', False, + gen.Generator._dist_option('polluters', [False, True], {}, 'Polluters.'), -# gen.Generator._dist_option('release_master', False, -# {}, -# 'Release master.'), - gen.Generator._dist_option('job_splitting', True, + gen.Generator._dist_option('job_splitting', [False, True], {}, 'Job splitting.'), gen.Generator._dist_option('ovh_type', 'max', @@ -247,6 +247,8 @@ class CflSplitPgmGenerator(EdfPgmGenerator): else: assert False + exp_params['fan_in_cap'] = int(exp_params['fan_in_cap']) + dp.nr_clusters = cpus / cluster_sz assert dp.nr_clusters * cluster_sz == cpus @@ -261,6 +263,7 @@ class CflSplitPgmGenerator(EdfPgmGenerator): # compute split factor working_ts = ts partitions = get_partitions(working_ts, dp.nr_clusters, cluster_sz) - is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not dp.job_splitting) + do_splits = dp.job_splitting == 'True' + is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not do_splits) return True, working_ts -- cgit v1.2.2