X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3592a2aaeeb3fff08acf80f6b5830d8fc1670aad..7ac777931e588a2a48708ac16caeb50973f2cdf9:/src/smpi/internals/smpi_bench.cpp diff --git a/src/smpi/internals/smpi_bench.cpp b/src/smpi/internals/smpi_bench.cpp index b570e7b1ea..0b68ed98c3 100644 --- a/src/smpi/internals/smpi_bench.cpp +++ b/src/smpi/internals/smpi_bench.cpp @@ -10,6 +10,7 @@ #include "src/mc/mc_replay.h" #include "smpi_process.hpp" #include "smpi_comm.hpp" +#include "simgrid/host.h" #ifndef WIN32 #include @@ -81,7 +82,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(); }