int master(int argc, char *argv[]);
int slave(int argc, char *argv[]);
int master(int argc, char *argv[]);
int slave(int argc, char *argv[]);
-const char * slavenames[NTASKS];
-const char * masternames[NTASKS];
-int gl_task_array_id=0;
+const char *slavenames[NTASKS];
+const char *masternames[NTASKS];
+int gl_task_array_id = 0;
- xbt_assert1(sscanf(argv[1],"%lg", &task_comm_size),
- "Invalid argument %s\n", argv[1]);
+ xbt_assert1(sscanf(argv[1], "%lg", &task_comm_size),
+ "Invalid argument %s\n", argv[1]);
char sprintf_buffer[64] = "Task_0";
todo = MSG_task_create(sprintf_buffer, 0, task_comm_size, NULL);
//keep track of running tasks
gl_task_array[id] = todo;
char sprintf_buffer[64] = "Task_0";
todo = MSG_task_create(sprintf_buffer, 0, task_comm_size, NULL);
//keep track of running tasks
gl_task_array[id] = todo;
- INFO5("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f", id+1, task_comm_size/(end_time-start_time), masternames[id], slavenames[id], 0.0);
+ INFO5
+ ("===> Estimated Bw of FLOW[%d] : %f ; message from %s to %s with remaining : %f",
+ id + 1, task_comm_size / (end_time - start_time), masternames[id],
+ slavenames[id], 0.0);
MSG_error_t res = MSG_OK;
MSG_set_channel_number(MAX_CHANNEL);
MSG_create_environment(platform_file);
MSG_error_t res = MSG_OK;
MSG_set_channel_number(MAX_CHANNEL);
MSG_create_environment(platform_file);