def nolock_example(task_files): oheads = example_overheads() for task_file in task_files: ts = load(task_file) for task in ts: task.wss = 256 clusts = partition_tasks(2, 12, True, ts) if clusts and bound_cfl_with_oh(oheads, True, clusts): yield (task_file, clusts) else: yield (task_file, None)
def lock_example(task_files): oheads = example_overheads() for task_file in task_files: ts = load(task_file) for task in ts: task.wss = 256 clusts = partition_tasks(2, 12, True, ts) if clusts: clusts2 = bound_cfl_with_locks(ts, clusts, oheads, 2) if clusts2: yield (task_file, clusts2) else: yield (task_file, None) else: yield (task_file, None)