A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added flag for printing more debug info
[simgrid.git]
/
src
/
smpi
/
smpi_bench.c
diff --git
a/src/smpi/smpi_bench.c
b/src/smpi/smpi_bench.c
index
51731ec
..
cc81f08
100644
(file)
--- a/
src/smpi/smpi_bench.c
+++ b/
src/smpi/smpi_bench.c
@@
-12,6
+12,9
@@
void smpi_execute(double duration)
smx_action_t action;
e_surf_action_state_t state;
smx_action_t action;
e_surf_action_state_t state;
+ if (duration < 0.001)
+ return;
+ DEBUG1("Sleep for %f to handle real computation time",duration);
SIMIX_mutex_lock(mutex);
action =
SIMIX_mutex_lock(mutex);
action =
@@
-35,7
+38,6
@@
void smpi_execute(double duration)
void smpi_start_timer()
{
void smpi_start_timer()
{
- SIMIX_mutex_lock(smpi_global->timer_mutex);
xbt_os_timer_start(smpi_global->timer);
}
xbt_os_timer_start(smpi_global->timer);
}
@@
-44,7
+46,6
@@
double smpi_stop_timer()
double duration;
xbt_os_timer_stop(smpi_global->timer);
duration = xbt_os_timer_elapsed(smpi_global->timer);
double duration;
xbt_os_timer_stop(smpi_global->timer);
duration = xbt_os_timer_elapsed(smpi_global->timer);
- SIMIX_mutex_unlock(smpi_global->timer_mutex);
return duration;
}
return duration;
}