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

[CombineStridedOps] Generalize dimension checking #1032

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

jtuyls
Copy link
Collaborator

@jtuyls jtuyls commented Jan 15, 2025

This PR generalizes dimension checking in CombineStridedOps. This allows difference ops to provide their own dimension checking implementation. This is needed because circular and non-circular dma_cpy_nd ops have different logic for checking whether the number of dimensions of the combined DMA op would exceed the available number of dimensions.

With this fix, BatchMatmul works with the pack-peel-4-level-tiling pipeline.

@jtuyls jtuyls force-pushed the combine-strided-ops-exceed-dims branch from 7ff116a to 75060e4 Compare January 15, 2025 15:08
Copy link
Contributor

@yzhang93 yzhang93 left a comment

Choose a reason for hiding this comment

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

LGTM.

@newling
Copy link
Contributor

newling commented Jan 16, 2025

I guess this will solve #1036

What is the logic behind circular dma's being allowed unlimited dma dimensions?

@newling
Copy link
Contributor

newling commented Jan 16, 2025

What is the logic behind circular dma's being allowed unlimited dma dimensions?

Answered privately: having unlimited is actually too lenient, but the thinking is that you can unlimited dimensions as long as they have stride = 0 (I guess because they can all be collapsed).

@newling newling merged commit 89f5a16 into nod-ai:main Jan 16, 2025
6 checks passed
@jtuyls jtuyls deleted the combine-strided-ops-exceed-dims branch January 17, 2025 09:15
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.

3 participants