Skip to content

Ensure that MPI Sendrecv never uses the same buffer #2

@TysonRayJones

Description

@TysonRayJones

Simultaneously sending and receiving overlapping arrays is undefined MPI behaviour. When arrays should be swapped, one must instead use a buffer, or the less efficient Sendrecv_replace method.

Any function doing direct statevector or buffer swaps (e.g. oneQubitDepolarising()) must be refactored to use safe non-overlapping buffers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions