Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill another bunch of files in doc/ and move their content to docs/
[simgrid.git] / doc / doxygen / FAQ.doc
1 /*! @page FAQ Frequently Asked Questions
2
3 @subsubsection Implementing communication delays between SimDAG tasks.
4
5 A classic question of SimDag newcomers is about how to express a
6 communication delay between tasks. The thing is that in SimDag, both
7 computation and communication are seen as tasks.  So, if you want to
8 model a data dependency between two DAG tasks t1 and t2, you have to
9 create 3 SD_tasks: t1, t2 and c and add dependencies in the following
10 way:
11
12 @code
13 SD_task_dependency_add(t1, c);
14 SD_task_dependency_add(c, t2);
15 @endcode
16
17 This way task t2 cannot start before the termination of communication c
18 which in turn cannot start before t1 ends.
19
20 When creating task c, you have to associate an amount of data (in bytes)
21 corresponding to what has to be sent by t1 to t2.
22
23 Finally to schedule the communication task c, you have to build a list
24 comprising the workstations on which t1 and t2 are scheduled (w1 and w2
25 for example) and build a communication matrix that should look like
26 [0;amount ; 0; 0].
27
28 */