* GOAL files as an input, thus the file name. But there is no actual link
* to the GOAL formalism beside of this.
*/
* GOAL files as an input, thus the file name. But there is no actual link
* to the GOAL formalism beside of this.
*/
* 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. */
* 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 "xbt/xbt_os_time.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(goal, "The GOAL loader into SimDag");
typedef struct {
#include "xbt/xbt_os_time.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(goal, "The GOAL loader into SimDag");
typedef struct {
const sg_host_t* ws_list;
int count = 0;
xbt_dynar_t reclaimed;
static void send_one(int from, int to) {
const sg_host_t* ws_list;
int count = 0;
xbt_dynar_t reclaimed;
static void send_one(int from, int to) {
int main(int argc, char **argv) {
xbt_os_timer_t timer = xbt_os_timer_new();
int main(int argc, char **argv) {
xbt_os_timer_t timer = xbt_os_timer_new();
ws_list = sg_host_list();
reclaimed = xbt_dynar_new(sizeof(bcast_task_t),xbt_free_ref);
ws_list = sg_host_list();
reclaimed = xbt_dynar_new(sizeof(bcast_task_t),xbt_free_ref);
xbt_os_cputimer_start(timer);
send_one(0,sg_host_count());
do {
xbt_os_cputimer_start(timer);
send_one(0,sg_host_count());
do {
} while(!xbt_dynar_is_empty(done));
xbt_os_cputimer_stop(timer);
printf("exec_time:%f\n", xbt_os_timer_elapsed(timer) );
} while(!xbt_dynar_is_empty(done));
xbt_os_cputimer_stop(timer);
printf("exec_time:%f\n", xbt_os_timer_elapsed(timer) );