Skip to content

Add integer-based access to MPI_Wtime #77

Closed
@mahermanns

Description

@mahermanns

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    scheduled readingReading is scheduled for the next meetingwg-toolsTools Working Group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions