Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change TCP_gamma to not be a compilation-time #define, but a command line option
[simgrid.git] / teshsuite / simdag / basic6.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "simdag/simdag.h"
4
5 /*
6  * test: scheduling 2 tasks at the same time
7  * without artificial dependecies
8  * 
9  * author: sahu
10  */
11
12 int main(int argc, char **argv)
13 {
14   double comm_cost[] = { 0.0, 0.0, 0.0, 0.0 };
15   double comp_cost[] = { 1.0 };
16   SD_task_t taskA, taskB;
17
18   SD_init(&argc, argv);
19   SD_create_environment(argv[1]);
20
21   taskA = SD_task_create("Task A", NULL, 1.0);
22   taskB = SD_task_create("Task B", NULL, 1.0);
23
24   SD_task_schedule(taskA, 1, SD_workstation_get_list(), comp_cost, comm_cost,
25                    -1.0);
26   SD_task_schedule(taskB, 1, SD_workstation_get_list(), comp_cost, comm_cost,
27                    -1.0);
28
29   SD_simulate(-1.0);
30
31   SD_exit();
32   return 0;
33 }