stage about empty object files */
#ifdef TMPI_PROFILE
-void tMPI_Profile_init(struct tmpi_profile *prof)
+int tMPI_Profile_init(struct tmpi_profile *prof)
{
int i;
{
prof->wait_cycles[i] = 0;
}
- prof->global_start = tmpi_cycles_read();
+ prof->global_start = tMPI_Cycles_read();
prof->global_stop = 0;
prof->wait_start = 0;
#endif
prof->total_p2p_xfers = 0;
prof->total_coll_xfers = 0;
tMPI_Profile_started = 1;
+
+ return TMPI_SUCCESS;
}
void tMPI_Profile_stop(struct tmpi_profile *prof)
{
#ifdef TMPI_CYCLE_COUNT
- prof->global_stop = tmpi_cycles_read();
+ prof->global_stop = tMPI_Cycles_read();
#endif
tMPI_Profile_started = 0;
}