Skip to content

[QUESTION] What is the principle of pre-communication-optimization? #61

@LitLeo

Description

@LitLeo

Your question

--no-pre-communication-optimization
By default zb runtime dispatches a tiny communication before the real communication to optimize computation
Why?

code

# Cannot fuse "pre_send" with other send kernels, or they will get stuck

# Cannot fuse "pre_send" with other send kernels, or they will get stuck
# possibly as there will be 2 send-recv with the same source and target.
with nvtx_range_ctx("pre_send"):
    pre_send, _ = multi_pipeline_ops(
        pre_sp_tensors, [],
        pre_sn_tensors, [],
        batch_p2p,
    )
with nvtx_range_ctx(send_fused_name):
    send_reqs, _ = multi_pipeline_ops(
        sp_tensors, [],
        sn_tensors, [],
        batch_p2p,
    )

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