Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
also display the kind of a task if known from SD_task_dump()
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 6 Oct 2009 16:58:46 +0000 (16:58 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 6 Oct 2009 16:58:46 +0000 (16:58 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6728 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simdag/sd_task.c

index d297025..101c92c 100644 (file)
@@ -279,6 +279,18 @@ void SD_task_dump(SD_task_t task)
 
   INFO1("Displaying task %s",SD_task_get_name(task));
   INFO1("  - amount: %.0f",SD_task_get_amount(task));
 
   INFO1("Displaying task %s",SD_task_get_name(task));
   INFO1("  - amount: %.0f",SD_task_get_amount(task));
+  if (task->kind!=0) {
+    switch(task->kind){
+    case SD_TASK_COMM_E2E:
+      INFO0("  - kind: end-to-end communication");
+      break;
+    case SD_TASK_COMP_SEQ:
+      INFO0("  - kind: sequential computation");
+      break;
+    default:
+      INFO1("  - (unknown kind %d)",task->kind);
+    }
+  }
   if (xbt_dynar_length(task->tasks_before)) {
     INFO0("  - pre-dependencies:");
     xbt_dynar_foreach(task->tasks_before,counter,dependency) {
   if (xbt_dynar_length(task->tasks_before)) {
     INFO0("  - pre-dependencies:");
     xbt_dynar_foreach(task->tasks_before,counter,dependency) {