Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small change to calls to SIMIX_action_communicate and SIMIX_action_execute
authormarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Nov 2007 22:54:19 +0000 (22:54 +0000)
committermarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Nov 2007 22:54:19 +0000 (22:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4990 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/smpi_bench.c
src/smpi/smpi_sender.c

index b43a128..a301b69 100644 (file)
@@ -14,13 +14,12 @@ void smpi_bench_end()
 {
        double duration;
        smx_host_t host;
-       char computation[] = "computation";
        smx_action_t action;
 
        xbt_os_timer_stop(smpi_global->timer);
        duration = xbt_os_timer_elapsed(smpi_global->timer);
        host     = SIMIX_host_self();
-       action   = SIMIX_action_execute(host, computation, duration * SMPI_DEFAULT_SPEED);
+       action   = SIMIX_action_execute(host, "computation", duration * SMPI_DEFAULT_SPEED);
 
        SIMIX_register_action_to_condition(action, smpi_global->timer_cond);
        SIMIX_cond_wait(smpi_global->timer_cond, smpi_global->timer_mutex);
index f02e0ab..0035d63 100644 (file)
@@ -15,7 +15,6 @@ int smpi_sender(int argc, char **argv)
 
        smx_host_t dhost;
 
-       char communication[] = "communication";
        smx_action_t action;
 
        smpi_received_message_t message;
@@ -91,7 +90,7 @@ int smpi_sender(int argc, char **argv)
                                request->completed = 1;
                        }
 
-                       action = SIMIX_action_communicate(shost, dhost, communication, request->datatype->size * request->count, -1.0);
+                       action = SIMIX_action_communicate(shost, dhost, "communication", request->datatype->size * request->count, -1.0);
 
                        SIMIX_register_action_to_condition(action, request->cond);
                        SIMIX_cond_wait(request->cond, request->mutex);