From 4107478982adc3eade105c88bfa79c0c792f1348 Mon Sep 17 00:00:00 2001 From: suter Date: Sun, 24 Jun 2012 18:52:05 +0200 Subject: [PATCH] extend the test to unschedule parallel typed tasks and test the fact that no order is imposed to auto-schedule a transfer (src first or dst first, who cares?) --- examples/simdag/sd_typed_tasks_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/simdag/sd_typed_tasks_test.c b/examples/simdag/sd_typed_tasks_test.c index f72d8aab68..248c4d4796 100644 --- a/examples/simdag/sd_typed_tasks_test.c +++ b/examples/simdag/sd_typed_tasks_test.c @@ -66,6 +66,16 @@ int main(int argc, char **argv) SD_task_schedulev(par_comp1, 4, workstations); SD_task_schedulev(par_comp2, 3, workstations); + /* Let's unschedule these tasks and test the auto-scheduling in the + * opposite way. + */ + SD_task_unschedule(par_comp1); + SD_task_unschedule(par_comp2); + SD_task_unschedule(redist); /* yes, it was scheduled too */ + + SD_task_schedulev(par_comp2, 3, workstations); + SD_task_schedulev(par_comp1, 4, workstations); + for (i=0;i<4;i++){ workstation_list[i]=workstations[i+4]; /* Apply Amdahl's law manually assuming a 20% serial part */ -- 2.20.1