X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bf6e499b29ed3183f40b60fbcd0fe3caed12f197..5467c565b7568483e25701d74f1167e1fb6ef455:/examples/msg/parallel_task/parallel_task.c diff --git a/examples/msg/parallel_task/parallel_task.c b/examples/msg/parallel_task/parallel_task.c index c16de7212f..7dd874865f 100644 --- a/examples/msg/parallel_task/parallel_task.c +++ b/examples/msg/parallel_task/parallel_task.c @@ -22,8 +22,8 @@ int test(int argc, char *argv[]) { int slaves_count = 0; m_host_t *slaves = NULL; - double task_comp_size = 0; - double task_comm_size = 0; + double task_comp_size = 100000; + double task_comm_size = 10000; double *computation_amount = NULL; double *communication_amount = NULL; m_task_t ptask = NULL; @@ -32,8 +32,8 @@ int test(int argc, char *argv[]) slaves_count = MSG_get_host_number(); slaves = MSG_get_host_table(); - computation_amount = calloc(slaves_count,sizeof(double)); - communication_amount = calloc(slaves_count*slaves_count,sizeof(double)); + computation_amount = xbt_new0(double,slaves_count); + communication_amount = xbt_new0(double,slaves_count*slaves_count); for(i=0;i