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
[mc] Use mc_snapshot_read in mc_diff (compatibility with per-page snapshots)
[simgrid.git]
/
src
/
smpi
/
smpi_bench.c
diff --git
a/src/smpi/smpi_bench.c
b/src/smpi/smpi_bench.c
index b97f86e4e837ae898cd680e04effdeb6aac785ee..8b37cab4aeb92feaaf157d672afc91a4d34a03bc 100644
(file)
--- a/
src/smpi/smpi_bench.c
+++ b/
src/smpi/smpi_bench.c
@@
-206,7
+206,10
@@
void smpi_bench_end(void)
xbt_backtrace_display_current();
xbt_die("Aborting.");
}
xbt_backtrace_display_current();
xbt_die("Aborting.");
}
- smpi_execute(xbt_os_timer_elapsed(timer));
+ // Simulate the benchmarked computation unless disabled via command-line argument
+ if (sg_cfg_get_boolean("smpi/simulate_computation")) {
+ smpi_execute(xbt_os_timer_elapsed(timer));
+ }
}
/* Private sleep function used by smpi_sleep() and smpi_usleep() */
}
/* Private sleep function used by smpi_sleep() and smpi_usleep() */