static void smpi_cfg_cb_host_speed(const char *name, int pos)
{
- smpi_global->reference_speed =
- xbt_cfg_get_double_at(_surf_cfg_set, name, pos);
+ if(smpi_global)
+ {
+ smpi_global->reference_speed =
+ xbt_cfg_get_double_at(_surf_cfg_set, name, pos);
+ }
}
int smpi_run_simulation(int *argc, char **argv)
int retval = MPI_SUCCESS;
int rank;
+ smpi_bench_end();
rank = smpi_mpi_comm_rank(comm);
DEBUG1("<%d> basic alltoallv() called.",rank);
retval = smpi_coll_basic_alltoallv(sendbuf, scounts, sdisps, datatype,
recvbuf, rcounts, rdisps, recvtype,
comm);
-
+ smpi_bench_begin();
return retval;
}
double SMPI_MPI_Wtime(void)
{
- return (SIMIX_get_clock());
+ double time;
+
+ smpi_bench_end();
+ time = SIMIX_get_clock();
+ smpi_bench_begin();
+ return time;
}