Caliper
Caliper copied to clipboard
Synchronizing time across MPI ranks
I would like to compare time.offset
across traces from different MPI ranks. I notice in the Timestamp section, it says:
Note that timestamps are not synchronized between nodes in a distributed-memory program.
Is there some way to work around this? I realize that synchronizing clocks is a hopelessly complicated problem in general, but if I just wanted something like:
MPI_Barrier(MPI_COMM_WORLD);
caliper::reset_time();
Is there a way to achieve this?
@tpeterka FYI
Hi @mrzv ,
We currently don't have a way to reset timestamps. You can of course can manually post-process the trace data and update timestamps when you know where a barrier is.
@daboehme This is quite a show-stopper for me. Would it be difficult to add something like reset_time()
? Is this compatible with how services are designed now?