-/* Copyright (c) 2007-2013. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2014. 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. */
struct task_data t3;
struct task_data t4;
- t1.task = MSG_task_create("Task1", 10000000000000000UL, 0, NULL);
- t2.task = MSG_task_create("Task2", 10000000000000000UL, 0, NULL);
- t3.task = MSG_task_create("Task3", 10000000000000000UL, 0, NULL);
- t4.task = MSG_task_create("Task4", 10000000000000000UL, 0, NULL);
+ t1.task = MSG_task_create("Task1", 1e16, 0, NULL);
+ t2.task = MSG_task_create("Task2", 1e16, 0, NULL);
+ t3.task = MSG_task_create("Task3", 1e16, 0, NULL);
+ t4.task = MSG_task_create("Task4", 1e16, 0, NULL);
MSG_process_create("worker1", worker_main, t1.task, pm1);
MSG_process_create("worker2", worker_main, t2.task, pm1);
struct task_data t2;
struct task_data t3;
- t0.task = MSG_task_create("Task0", 10000000000000000UL, 0, NULL);
- t1.task = MSG_task_create("Task1", 10000000000000000UL, 0, NULL);
- t2.task = MSG_task_create("Task2", 10000000000000000UL, 0, NULL);
- t3.task = MSG_task_create("Task3", 10000000000000000UL, 0, NULL);
+ t0.task = MSG_task_create("Task0", 1e16, 0, NULL);
+ t1.task = MSG_task_create("Task1", 1e16, 0, NULL);
+ t2.task = MSG_task_create("Task2", 1e16, 0, NULL);
+ t3.task = MSG_task_create("Task3", 1e16, 0, NULL);
MSG_process_create("worker0", worker_main, t0.task, vm0);
MSG_process_create("worker1", worker_main, t1.task, vm1);
msg_host_t pm2 = xbt_dynar_get_as(hosts_dynar, 2, msg_host_t);
- XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm0), MSG_get_host_core(pm0), MSG_get_host_speed(pm0));
- XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm1), MSG_get_host_core(pm1), MSG_get_host_speed(pm1));
- XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm2), MSG_get_host_core(pm2), MSG_get_host_speed(pm2));
+ XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm0), MSG_host_get_core_number(pm0), MSG_get_host_speed(pm0));
+ XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm1), MSG_host_get_core_number(pm1), MSG_get_host_speed(pm1));
+ XBT_INFO("%s: %d core(s), %f flops/s per each", MSG_host_get_name(pm2), MSG_host_get_core_number(pm2), MSG_get_host_speed(pm2));