-
Notifications
You must be signed in to change notification settings - Fork 75
Avoid mesh size checks #5904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Avoid mesh size checks #5904
Conversation
|
!test |
|
Review updated until commit eea10f1 Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| ⚡ Recommended focus areas for review |
Potential Logic Error
|
|
!test |
Greptile OverviewGreptile SummaryRemoved intermediate boolean variables
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant getCommunicationInfo
participant PairwiseLogicalDomainMap
participant FillCommInfo as fill_communication_info
Caller->>getCommunicationInfo: Call with Expr* e
getCommunicationInfo->>getCommunicationInfo: Extract producer and consumer TensorViews
getCommunicationInfo->>PairwiseLogicalDomainMap: Create mapping (producer, consumer)
PairwiseLogicalDomainMap-->>getCommunicationInfo: Return p2c_map and c2p_map
loop For each ParallelType in kParallelTypeDIDs
getCommunicationInfo->>getCommunicationInfo: Get p_loop_did and c_loop_did
alt Both nullptr
getCommunicationInfo->>getCommunicationInfo: Continue to next parallel type
else p_loop_did exists AND c_loop_did is nullptr (LoadStoreOp)
getCommunicationInfo->>FillCommInfo: Allgather or Gather
else p_loop_did is nullptr AND c_loop_did exists (LoadStoreOp)
getCommunicationInfo->>FillCommInfo: Scatter
else Both exist (LoadStoreOp)
getCommunicationInfo->>FillCommInfo: SendRecv or AllToAll
else ReductionOp/SqueezeOp with p_loop_did
alt c_loop_did is nullptr
getCommunicationInfo->>FillCommInfo: Allreduce or Reduce
else c_loop_did exists and reduction
getCommunicationInfo->>FillCommInfo: ReduceScatter
end
end
end
alt No communication found
getCommunicationInfo->>FillCommInfo: Broadcast (nullptr, nullptr)
end
getCommunicationInfo-->>Caller: Return CommunicationInfo
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
Prefer simplicity over unnecessary performance optimizations. Single-GPU performance for a distributed program is largely irrelevant.