Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 9 Mar 2008 21:47:12 +0000 (21:47 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 9 Mar 2008 21:47:12 +0000 (21:47 +0000)
 1) Use ptask_L07 as other models do not support parallel tasks anymore.
 2) Do not free arguments defining parallel tasks. They are automatically desalocated when the action is destroyed.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5284 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/parallel_task/parallel_task.c

index 1dcf7e6..7dd8748 100644 (file)
@@ -49,10 +49,11 @@ int test(int argc, char *argv[])
                                   NULL);
   MSG_parallel_task_execute(ptask);
 
+  /* There is no need to free that! */
+/*   free(communication_amount); */
+/*   free(computation_amount); */
   
   INFO0("Goodbye now!");
-  free(communication_amount);
-  free(computation_amount);
   free(slaves);
   return 0;
 } 
@@ -62,7 +63,7 @@ MSG_error_t test_all(const char *platform_file)
 {
   MSG_error_t res = MSG_OK;
 
-  /* MSG_config("workstation_model","KCCFLN05"); */
+  MSG_config("workstation_model","ptask_L07");
   MSG_set_channel_number(1);
   MSG_create_environment(platform_file);