Commit 64789c54 authored by Misbah Mubarak's avatar Misbah Mubarak

using nsecs instead of seconds when compute delay. This should give us an...

using nsecs instead of seconds when compute delay. This should give us an accurate measure of the compute time
parent b8df46df
......@@ -1279,8 +1279,8 @@ static void codes_exec_comp_delay(
nw_message* msg;
m->rc.saved_delay = s->compute_time;
s->compute_time += s_to_ns(mpi_op->u.delay.seconds);
ts = s_to_ns(mpi_op->u.delay.seconds);
s->compute_time += mpi_op->u.delay.nsecs;
ts = mpi_op->u.delay.nsecs;
ts += g_tw_lookahead + 0.1 + tw_rand_exponential(lp->rng, noise);
assert(ts > 0);
......
......@@ -249,6 +249,7 @@ void update_compute_time(const dumpi_time* time, rank_mpi_context* my_ctx)
wrkld_per_rank.start_time = my_ctx->last_op_time;
wrkld_per_rank.end_time = start;
wrkld_per_rank.u.delay.seconds = (start - my_ctx->last_op_time) / 1e9;
wrkld_per_rank.u.delay.nsecs = (start - my_ctx->last_op_time);
dumpi_insert_next_op(my_ctx->dumpi_mpi_array, &wrkld_per_rank);
}
my_ctx->last_op_time = stop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment