-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add propagation of thread dependent index sequences #292
Conversation
70e166d
to
a3b6f19
Compare
8831e4d
to
2ef7724
Compare
9a03b35
to
bb59e95
Compare
Signed-off-by: Harsh Menon <[email protected]>
if dst_op: | ||
for node in propagated_resolutions: | ||
get_custom(node).index = dst_op.index |
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.
When would we use it without dst_op?
thread_dependent_index: dict[IndexSymbol, IndexSequence], | ||
) -> dict[IndexSymbol, IndexSequence]: | ||
combined_index = {k: v for k, v in thread_independent_index.items()} | ||
for k in combined_index: |
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.
Would be nice to add some docs, to different examples/cases on when we'd add the start offsets. (perhaps read -> read or offseted_read + mma?)
vector_shapes = ( | ||
custom.vector_shapes if custom.vector_shapes else source_vector_shapes | ||
) | ||
sources.append((custom, source_index, vector_shapes)) |
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.
why not use source.index? Seems like the only time sourc.index != source_index is when source.index has underlying indices before getting propagated. But wouldn't we want that?
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.
Overall looks good and nice refactoring, just couple clarifying questions. But we can land for now. :)
This PR adds a major refactor of the index sequence analysis. Specifically,