X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/65e200cd6cca5e000376f689bd6b51d0a1fa886b..ecd5f7562caf1d443bf22788fa5f4fac408776ec:/src/smpi/internals/smpi_bench.cpp?ds=sidebyside diff --git a/src/smpi/internals/smpi_bench.cpp b/src/smpi/internals/smpi_bench.cpp index 795521e695..21fe9740d2 100644 --- a/src/smpi/internals/smpi_bench.cpp +++ b/src/smpi/internals/smpi_bench.cpp @@ -6,6 +6,7 @@ #include "private.hpp" #include "simgrid/modelchecker.h" #include "smpi_comm.hpp" +#include "simgrid/host.h" #include "smpi_process.hpp" #include "src/internal_config.h" #include "src/mc/mc_replay.hpp" @@ -69,7 +70,8 @@ void smpi_execute(double duration) void smpi_execute_benched(double duration) { smpi_bench_end(); - smpi_execute(duration); + double speed = sg_host_speed(sg_host_self()); + smpi_execute_flops(duration*speed); smpi_bench_begin(); }