Skip to content

ch4/ofi: ssend reply is not safe with multiple messages #5574

@hzhou

Description

@hzhou

In the native path, ssend receiver sends ack to the sender via a direct tag match. When the sender sends multiple ssends to the receiver with the same tag, the reply is not guaranteed to match the original send.

The current multi-thread ssend tests in test/mpi/threads/pt2pt is insufficient to catch this issue because the test doesn't really check the semantics of send -- difficult to check. The test passes as long as all the ssend gets ack'ed regardless of mismatching.

TODO

  • make a test confirm this issue
    * maybe we can send multiple messages both large and small all with the same tag, and measure the Wtime of the ssend. If sending small message takes longer than large message, then we know it is wrong.
    ❌ different threads contend and the timing isn't reliable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions