Skip to content

Question about SingleFlow.prev in ring all-reduce #162

@GoodFrost

Description

@GoodFrost

In the first round of Ring All-Reduce, why is the prev field of SingleFlow set to the previous rank?
Isn't the first-round flow supposed to be initiated independently by each rank?
Why does it need a prev rank?

Code is in MockNcclGroup.cc: line 1168.

if(rank_it->second[0]!=-1){
  prevranks={rank_it->second[0]};
}

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