Description
Problem
MPI provides standardized access to a time source through MPI_Wtime()
, however, the returned timestamp is a floating-point number based on seconds since some time in the past. If that time in the past is significantly far in the past, the floating point value loses resolution. Furthermore, most common time sources are integer-based, thus the time information needs to be converted to a floating-point value with additional effort.
Proposal
Provide two additional calls returning integer values for ticks since some time in the past and ticks per second. The time source should be the same as that for MPI_Wtime
.
Changes to the Text
See the corresponding pull request.
Impact on Implementations
Implementations need to support the additional two function calls.
Impact on Users
Users can access integer-based timing information, with potentially lower overhead, while still benefiting from the convenient floating-point interface in less time/overhead-critical parts of the code (e.g., printf, write).
References
Tools Ticket: mpiwg-tools/tools-issues#8