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

[Frontend] Validate minimum TMA block size in the frontend #5611

Merged
merged 6 commits into from
Jan 16, 2025

Conversation

Mogball
Copy link
Collaborator

@Mogball Mogball commented Jan 15, 2025

The current TMA implementation requires the TMA block shape to have a minimum size, which is the swizzle tile size in smem. Add an error message for this in the frontend so users stop running into codegen crashes.

The current TMA implementation requires the TMA block shape to have a
minimum size, which is the swizzle tile size in smem. Add an error
message for this in the frontend so users stop running into codegen
crashes.
@Mogball Mogball requested a review from ptillet as a code owner January 15, 2025 06:42
@Mogball Mogball requested a review from peterbell10 January 15, 2025 06:42
@ptillet
Copy link
Collaborator

ptillet commented Jan 15, 2025

Can we throw a CompilationError ? This would make it more autotuner friendly!

@Mogball
Copy link
Collaborator Author

Mogball commented Jan 15, 2025

Correct me if I'm wrong, but it seems CompilationError is meant to be raised from the context of the AST visitors, since it requires an AST node. I believe the AssertionError will get wrapped into a CompilationError anyways.

@peterbell10
Copy link
Contributor

Maybe you could add a test that CompileError is raised?

@Mogball Mogball merged commit 94f80f4 into main Jan 16, 2025
7 checks passed
@Mogball Mogball deleted the mogball/tma_errors branch January 16, 2025 23:49
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