When simulating a target machine T on an host H, you had to give the
time as measured on H. This time was then “converted” to the time that
would be spent on T by using the host speed and the target speed.
Now, you directly give the time that should be spent on T. This is
better, since the relative duration of different pieces of code may differ
from H to T (and thus you really want to give the time spent on T).
#include "src/mc/mc_replay.h"
#include "smpi_process.hpp"
#include "smpi_comm.hpp"
#include "src/mc/mc_replay.h"
#include "smpi_process.hpp"
#include "smpi_comm.hpp"
+#include "simgrid/host.h"
#ifndef WIN32
#include <sys/mman.h>
#ifndef WIN32
#include <sys/mman.h>
void smpi_execute_benched(double duration)
{
smpi_bench_end();
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);