summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d63082d)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7291
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- printf("Got %ld slaves and %ld tasks to process\n", slaves_count,number_of_tasks);
-// INFO2("Got %ld slaves and %ld tasks to process", slaves_count,number_of_tasks);
+ INFO2("Got %ld slaves and %ld tasks to process", slaves_count,number_of_tasks);
for (i = 0; i < number_of_tasks; i++) {
char mailbox[256];
for (i = 0; i < number_of_tasks; i++) {
char mailbox[256];
sprintf(mailbox,"slave-%ld",i % slaves_count);
sprintf(sprintf_buffer, "Task_%d", i);
task = MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size, NULL);
sprintf(mailbox,"slave-%ld",i % slaves_count);
sprintf(sprintf_buffer, "Task_%d", i);
task = MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size, NULL);
- if (number_of_tasks<10000 || i%10000 == 0) {
- printf("Sending \"%s\" (of %ld) to mailbox \"%s\"\n", task->name, number_of_tasks, mailbox);
- fflush(stdout);
- }
+ if (number_of_tasks<10000 || i%10000 == 0)
+ INFO3("Sending \"%s\" (of %ld) to mailbox \"%s\"", task->name, number_of_tasks, mailbox);
MSG_task_send(task, mailbox);
MSG_task_send(task, mailbox);
}
INFO0("All tasks have been dispatched. Let's tell everybody the computation is over.");
}
INFO0("All tasks have been dispatched. Let's tell everybody the computation is over.");