Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reindent everything (possibly breaking all branches, but for the last time)
[simgrid.git] / teshsuite / simdag / partask / test_comp_only_seq.c
1
2 /*
3  * SimDag
4  * Computation tests
5  * Copyright (C) 2007 
6  * Sascha Hunold, Frederic Suter
7  */
8
9 #include <stdio.h>
10 #include <stdlib.h>
11
12 #include "simdag/simdag.h"
13
14 int main(int argc, char **argv)
15 {
16
17   double time;
18   double comm_amount[] = { 0.0 };
19   double comp_cost[] = { 1.0 };
20
21   SD_task_t task;
22
23   SD_init(&argc, argv);
24   SD_create_environment(argv[1]);
25
26   task = SD_task_create("seqtask", NULL, 1.0);
27   SD_task_schedule(task, 1, SD_workstation_get_list(), comp_cost,
28                    comm_amount, -1.0);
29
30   SD_simulate(-1.0);
31
32   time = SD_get_clock();
33
34   printf("%g\n", time);
35   fflush(stdout);
36
37   SD_task_destroy(task);
38
39   SD_exit();
40
41   return 0;
42 }