Skip to content
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

Simplify handling of "define box by compositing" #2420

Merged
merged 48 commits into from
Jun 26, 2024
Merged

Conversation

zasdfgbnm
Copy link
Collaborator

@zasdfgbnm zasdfgbnm commented Jun 14, 2024

When there is a "define box by compositing", in principle, we should be indexing into the imagined partitioned IterDomain, as shown below"

However, we were not able to do that in the past because indexing only supports backward propagation. With TensorIndexer and AbstractTensor, we can easily create the imagined partitioned ValGroup and index into it.
So there is no need to use the state machine approach to manually combine indices, instead, the index of the imagined partitioned ValGroup can be directly used as the index for the TMA PTX instructions.

@zasdfgbnm zasdfgbnm changed the title save Simplify handling of "define box by compositing" Jun 14, 2024
@zasdfgbnm
Copy link
Collaborator Author

!build

@zasdfgbnm
Copy link
Collaborator Author

Stacked on #2416, marked as draft to avoid accidental merge.

@zasdfgbnm zasdfgbnm requested a review from naoyam June 14, 2024 19:35
@zasdfgbnm
Copy link
Collaborator Author

!build

Base automatically changed from tma-tensor-indexer to main June 25, 2024 20:53
@zasdfgbnm zasdfgbnm requested a review from naoyam June 25, 2024 21:21
@zasdfgbnm zasdfgbnm marked this pull request as ready for review June 25, 2024 21:23
@zasdfgbnm
Copy link
Collaborator Author

!build

Copy link
Collaborator

@naoyam naoyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

csrc/id_model/indexing.h Show resolved Hide resolved
@zasdfgbnm zasdfgbnm merged commit 5037d8a into main Jun 26, 2024
33 checks passed
@zasdfgbnm zasdfgbnm deleted the tma-abstract-tensor branch June 26, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants