Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
As pointed out by a user, the rate should be expressed in percent, not
authorsuter <frederic.suter@cc.in2p3.fr>
Mon, 9 Jul 2012 12:27:17 +0000 (14:27 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Mon, 9 Jul 2012 12:33:44 +0000 (14:33 +0200)
in [0..1[. Thus change the .5 to 50 (divide the communication rate by
two), update the "doc" and revalidate the tesh file

examples/simdag/sd_comm_throttling.c
examples/simdag/test_simdag_comm_throttling.tesh
src/simdag/sd_task.c

index aa81fe6..c362e75 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
     }
     /* let throttle the communication for taskD if its parent is SD_DONE */
     if (SD_task_get_state(taskC) == SD_DONE)
     }
     /* let throttle the communication for taskD if its parent is SD_DONE */
     if (SD_task_get_state(taskC) == SD_DONE)
-      SD_task_set_rate(taskD, 0.5);
+      SD_task_set_rate(taskD, 50);
   }
 
   XBT_DEBUG("Destroying tasks...");
   }
 
   XBT_DEBUG("Destroying tasks...");
index ccc1313..4fb69d0 100644 (file)
@@ -8,6 +8,6 @@ $ $SG_TEST_EXENV ./sd_comm_throttling ${srcdir:=.}/2clusters.xml
 > [2.300300] [sd_comm_throttling/INFO] Simulation stopped after 2.3003 seconds
 > [2.300300] [sd_comm_throttling/INFO] Task 'Task B' start time: 1.000000, finish time: 1.300300
 > [2.300300] [sd_comm_throttling/INFO] Task 'Task C' start time: 1.300300, finish time: 2.300300
 > [2.300300] [sd_comm_throttling/INFO] Simulation stopped after 2.3003 seconds
 > [2.300300] [sd_comm_throttling/INFO] Task 'Task B' start time: 1.000000, finish time: 1.300300
 > [2.300300] [sd_comm_throttling/INFO] Task 'Task C' start time: 1.300300, finish time: 2.300300
-> [5.300600] [sd_comm_throttling/INFO] Simulation stopped after 5.3006 seconds
-> [5.300600] [sd_comm_throttling/INFO] Task 'Task D' start time: 2.300300, finish time: 4.300600
-> [5.300600] [sd_comm_throttling/INFO] Task 'Task E' start time: 4.300600, finish time: 5.300600
+> [3.600600] [sd_comm_throttling/INFO] Simulation stopped after 3.6006 seconds
+> [3.600600] [sd_comm_throttling/INFO] Task 'Task D' start time: 2.300300, finish time: 2.600600
+> [3.600600] [sd_comm_throttling/INFO] Task 'Task E' start time: 2.600600, finish time: 3.600600
index 2147c63..11d27bb 100644 (file)
@@ -283,7 +283,7 @@ void SD_task_set_data(SD_task_t task, void *data)
  * a task can use.
  *
  * \param task a task
  * a task can use.
  *
  * \param task a task
- * \param rate the new rate you want to associate with this task
+ * \param rate the new rate (in percent) you want to associate with this task
  */
 void SD_task_set_rate(SD_task_t task, double rate)
 {
  */
 void SD_task_set_rate(SD_task_t task, double rate)
 {