A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finally understand how the rate works. update the example and the tesh
[simgrid.git]
/
examples
/
simdag
/
sd_comm_throttling.c
diff --git
a/examples/simdag/sd_comm_throttling.c
b/examples/simdag/sd_comm_throttling.c
index
aa81fe6
..
a2f9f8a
100644
(file)
--- a/
examples/simdag/sd_comm_throttling.c
+++ b/
examples/simdag/sd_comm_throttling.c
@@
-72,8
+72,11
@@
int main(int argc, char **argv)
}
/* let throttle the communication for taskD if its parent is SD_DONE */
}
/* let throttle the communication for taskD if its parent is SD_DONE */
+ /* the bandwidth is 1.25e8, the data size is 1e7, and we want to throttle
+ * the bandwidth by a factor 2. the rate is then 1.25e8/(2*1e7)=6.25
+ */
if (SD_task_get_state(taskC) == SD_DONE)
if (SD_task_get_state(taskC) == SD_DONE)
- SD_task_set_rate(taskD,
0.
5);
+ SD_task_set_rate(taskD,
6.2
5);
}
XBT_DEBUG("Destroying tasks...");
}
XBT_DEBUG("Destroying tasks...");