X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..e56bea291e54aac63783fe568585d19a24528c2a:/teshsuite/simdag/basic6.c diff --git a/teshsuite/simdag/basic6.c b/teshsuite/simdag/basic6.c index 9dcc466924..e2516dde64 100644 --- a/teshsuite/simdag/basic6.c +++ b/teshsuite/simdag/basic6.c @@ -1,13 +1,17 @@ +/* test scheduling 2 tasks at the same time without artificial dependencies */ + +/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include #include #include "simdag/simdag.h" +#include "xbt/log.h" -/* - * test: scheduling 2 tasks at the same time - * without artificial dependecies - * - * author: sahu - */ +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(basic6, sd, "SimDag test basic6"); int main(int argc, char **argv) { @@ -21,13 +25,15 @@ int main(int argc, char **argv) taskA = SD_task_create("Task A", NULL, 1.0); taskB = SD_task_create("Task B", NULL, 1.0); - SD_task_schedule(taskA, 1, SD_workstation_get_list(), comp_cost, comm_cost, - -1.0); - SD_task_schedule(taskB, 1, SD_workstation_get_list(), comp_cost, comm_cost, - -1.0); + SD_task_schedule(taskA, 1, SD_workstation_get_list(), comp_cost, + comm_cost, -1.0); + SD_task_schedule(taskB, 1, SD_workstation_get_list(), comp_cost, + comm_cost, -1.0); SD_simulate(-1.0); + INFO1("Simulation time: %f", SD_get_clock()); + SD_exit(); return 0; }