From: quintin Date: Thu, 1 Jul 2010 13:32:28 +0000 (+0000) Subject: the comment of some lines add a bug in the execution of dags. X-Git-Tag: v3_5~860 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d8cb5c8dc3dfc507a7ba060bcd0301dfd251d54d the comment of some lines add a bug in the execution of dags. Frederic Suter why did you comment some lines in this file? git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7957 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simdag/sd_task.c b/src/simdag/sd_task.c index 9b9a57b949..0b0c4cb673 100644 --- a/src/simdag/sd_task.c +++ b/src/simdag/sd_task.c @@ -1338,15 +1338,16 @@ void SD_task_schedulev(SD_task_t task, int count, const SD_workstation_t*list) { SD_task_t after = dep->dst; if (after->kind == SD_TASK_COMM_E2E) { after->workstation_list[0] = task->workstation_list[0]; -// if (after->workstation_list[1] && (__SD_task_is_not_scheduled(after) || -// __SD_task_is_schedulable(after))) { -// SD_task_do_schedule(after); -// VERB4("Auto-Schedule comm task %s between %s -> %s. It costs %.f bytes", -// SD_task_get_name(after), -// SD_workstation_get_name(after->workstation_list[0]),SD_workstation_get_name(after->workstation_list[1]), -// after->communication_amount[2]); -// -// } + //J-N : Why did you comment on these line (this comment add a bug I think)? + if (after->workstation_list[1] && (__SD_task_is_not_scheduled(after) || + __SD_task_is_schedulable(after))) { + SD_task_do_schedule(after); + VERB4("Auto-Schedule comm task %s between %s -> %s. It costs %.f bytes", + SD_task_get_name(after), + SD_workstation_get_name(after->workstation_list[0]),SD_workstation_get_name(after->workstation_list[1]), + after->communication_amount[2]); + + } } } }