From aec4a150a2f7c9a328729b08d727ddf41817d941 Mon Sep 17 00:00:00 2001 From: pini Date: Thu, 25 Feb 2010 12:13:11 +0000 Subject: [PATCH] Use an execute action instead of a sleep action. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7125 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/smpi/smpi_bench.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index c15fc3533a..31dbd250d5 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -12,14 +12,13 @@ void smpi_execute(double duration) smx_cond_t cond; e_surf_action_state_t state; - if(duration > 0.001) { host = SIMIX_host_self(); mutex = SIMIX_mutex_init(); cond = SIMIX_cond_init(); DEBUG1("Sleep for %f to handle real computation time", duration); duration *= xbt_cfg_get_double(_surf_cfg_set, "reference_speed"); - action = SIMIX_action_sleep(host, duration); + action = SIMIX_action_execute(host, "computation", duration); SIMIX_mutex_lock(mutex); SIMIX_register_action_to_condition(action, cond); for (state = SIMIX_action_get_state(action); -- 2.20.1