Skip to content

Soft-error swizzle composed slice when ZY projection fails - #3468

Draft
LibertychaserUS wants to merge 1 commit into
NVIDIA:mainfrom
LibertychaserUS:contrib/cutlass-3454
Draft

Soft-error swizzle composed slice when ZY projection fails#3468
LibertychaserUS wants to merge 1 commit into
NVIDIA:mainfrom
LibertychaserUS:contrib/cutlass-3454

Conversation

@LibertychaserUS

@LibertychaserUS LibertychaserUS commented Aug 17, 2026

Copy link
Copy Markdown

cute.slice_ on S<3,4,3> o 0 o (10,2):(2,1) aborted in cutegen static_size.
Y/Z projection composition made an invalid layout.
Return cg_error instead.
SliceOp then emits unable to slice.
(8,2) still becomes (8):(2).

Fixes #3454

Header-only: (10,2) invalid, no assert.
(8,2) and (64,128) still valid.
Unit test: cg_composed_layout_test.cpp.
slice_errors.mlir is in the diff. Needs cute-opt. Not run here.

Assisted by: Cursor

)

Composition with the swizzle Y/Z projection can yield an invalid layout
(e.g. S<3,4,3> o 0 o (10,2):(2,1)); return cg_error instead of asserting
in static_size so SliceOp can diagnose.

Signed-off-by: Oliver Zhang <zhiyuanzhang0904@163.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@LibertychaserUS
LibertychaserUS marked this pull request as draft August 20, 2026 09:30
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.

[BUG] cute.slice_ SIGABRTs on a static swizzled ComposedLayout

1 participant