Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adding Louis-Claude Canon's tests.
[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         double time;
17         double comm_amount[] = { 0.0 };
18         double comp_cost[] = { 1.0 };
19
20         SD_task_t task;
21
22         SD_init(&argc, argv);
23         SD_create_environment(argv[1]);
24
25         task = SD_task_create("seqtask", NULL, 1.0);
26         SD_task_schedule(task, 1, SD_workstation_get_list(), comp_cost,
27                         comm_amount, -1.0);
28
29         SD_simulate(-1.0);
30
31         time = SD_get_clock();
32
33         printf("%g\n", time);
34         fflush(stdout);
35
36         SD_task_destroy(task);
37
38         SD_exit();
39
40         return 0;
41 }
42