Skip to content

[BACKEND] Apply padding to memdesc_subview for PaddedSharedEncoding#7404

Merged
antiagainst merged 3 commits intotriton-lang:mainfrom
AlexAUT:fixRankReducingPaddedSubview
Jul 7, 2025
Merged

[BACKEND] Apply padding to memdesc_subview for PaddedSharedEncoding#7404
antiagainst merged 3 commits intotriton-lang:mainfrom
AlexAUT:fixRankReducingPaddedSubview

Conversation

@AlexAUT
Copy link
Copy Markdown
Contributor

@AlexAUT AlexAUT commented Jul 7, 2025

For padded layouts introduced by #7212 we need to add the padding to the base ptr of the resulting subview.

@antiagainst antiagainst marked this pull request as ready for review July 7, 2025 15:11
@antiagainst antiagainst requested a review from ptillet as a code owner July 7, 2025 15:11
@antiagainst antiagainst merged commit 6a38bee into triton-lang:main Jul 7, 2025
9 checks passed
@AlexAUT AlexAUT deleted the fixRankReducingPaddedSubview branch July 8, 2025 08:32
antiagainst pushed a commit that referenced this pull request Jul 29, 2025
#7622 introduced
`ttg.memdesc_index` which applies a constant offset to the base pointer
of the smem object. For padded layouts we need to add padding based on
the offset, similar to what
#7404 did for the old subview
operation.

I also adjusted the lit test to check we actually generate padding from
the ttg.memdesc_index. The previous version did not fail because it
matched the lowering of the `ttg.local_load/store` as well.
stadlmax pushed a commit to stadlmax/triton that referenced this pull request Aug 4, 2025
…7696)

triton-lang#7622 introduced
`ttg.memdesc_index` which applies a constant offset to the base pointer
of the smem object. For padded layouts we need to add padding based on
the offset, similar to what
triton-lang#7404 did for the old subview
operation.

I also adjusted the lit test to check we actually generate padding from
the ttg.memdesc_index. The previous version did not fail because it
matched the lowering of the `ttg.local_load/store` as well.
stadlmax pushed a commit to stadlmax/triton that referenced this pull request Aug 4, 2025
…7696)

triton-lang#7622 introduced
`ttg.memdesc_index` which applies a constant offset to the base pointer
of the smem object. For padded layouts we need to add padding based on
the offset, similar to what
triton-lang#7404 did for the old subview
operation.

I also adjusted the lit test to check we actually generate padding from
the ttg.memdesc_index. The previous version did not fail because it
matched the lowering of the `ttg.local_load/store` as well.
tie-pilot-qxw pushed a commit to tie-pilot-qxw/triton that referenced this pull request Aug 30, 2025
)

For padded layouts introduced by
triton-lang#7212 we need to add the
padding to the base ptr of the resulting subview.
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