Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Integrate a bit of the old FAQ in the modern doc, and reword Models.rst
[simgrid.git] / doc / doxygen / FAQ.doc
1 /*! @page FAQ Frequently Asked Questions
2
3 @tableofcontents
4
5 Some entries are a bit aging and it should be refreshed at some point.
6
7 @section faq_howto Feature related questions
8
9 @subsection faq_MIA_SimDag SimDag related questions
10
11 @subsubsection faq_SG_comm Implementing communication delays between tasks.
12
13 A classic question of SimDag newcomers is about how to express a
14 communication delay between tasks. The thing is that in SimDag, both
15 computation and communication are seen as tasks.  So, if you want to
16 model a data dependency between two DAG tasks t1 and t2, you have to
17 create 3 SD_tasks: t1, t2 and c and add dependencies in the following
18 way:
19
20 @code
21 SD_task_dependency_add(t1, c);
22 SD_task_dependency_add(c, t2);
23 @endcode
24
25 This way task t2 cannot start before the termination of communication c
26 which in turn cannot start before t1 ends.
27
28 When creating task c, you have to associate an amount of data (in bytes)
29 corresponding to what has to be sent by t1 to t2.
30
31 Finally to schedule the communication task c, you have to build a list
32 comprising the workstations on which t1 and t2 are scheduled (w1 and w2
33 for example) and build a communication matrix that should look like
34 [0;amount ; 0; 0].
35
36 */