-
Notifications
You must be signed in to change notification settings - Fork 77
debug: log propagation details #5896
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
Conversation
|
Review updated until commit 080fdea Description
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||
| Cleanup |
| ||||||
| Formatting |
|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 No relevant tests |
| ⚡ Recommended focus areas for review |
Debug Logging Implementation
|
Greptile OverviewGreptile SummaryThis PR adds comprehensive debug logging infrastructure for propagation paths in the multidevice sharding system. The changes enable developers to trace how shardings propagate between tensor views by logging the source, target, direction (Forward/Backward), and selected parallel types. Key Changes:
The implementation is clean and follows existing debugging patterns in the codebase. All required infrastructure (printer specializations, stream operators) is properly set up to support the new logging functionality. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant shardLoopLike
participant Debug
participant PropagateDirection
participant ParallelType
participant toDelimitedString
Caller->>shardLoopLike: Call with ref, target, selected_parallel_types, direction
shardLoopLike->>Debug: Check isDebugDumpEnabled(TransformPropagator)
alt Debug enabled
shardLoopLike->>Debug: debug() stream
shardLoopLike->>Debug: << ref->toString()
shardLoopLike->>Debug: << target->toString()
shardLoopLike->>PropagateDirection: << direction (uses operator<<)
PropagateDirection-->>shardLoopLike: Returns "Forward" or "Backward"
shardLoopLike->>toDelimitedString: Convert selected_parallel_types
toDelimitedString->>ParallelType: Printer<ParallelType>::toString() for each
toDelimitedString-->>shardLoopLike: Returns delimited string
shardLoopLike->>Debug: Output complete log message
end
shardLoopLike->>shardLoopLike: Continue with propagation logic
|
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.
3 files reviewed, no comments
|
!test |
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.
3 files reviewed, no comments
|
!test |
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.
2 files reviewed, 1 comment
|
!test |
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, 1 comment
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
!test |
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.
3 files reviewed, no comments
Summary
Testing