Skip to content

[TLE][MTHREADS] Fix shared memory alias conflict for tle.gpu.alloc bu…#849

Open
Kylin1207 wants to merge 1 commit into
flagos-ai:mainfrom
Kylin1207:fix_issue_836
Open

[TLE][MTHREADS] Fix shared memory alias conflict for tle.gpu.alloc bu…#849
Kylin1207 wants to merge 1 commit into
flagos-ai:mainfrom
Kylin1207:fix_issue_836

Conversation

@Kylin1207

Copy link
Copy Markdown
Contributor

The mthreads backend's Alias.cpp overrode the common implementation but lacked TLE alias propagation for tle.local_pointers and pointer-arithmetic chains (tt.splat / tt.addptr). This caused the shared-memory allocator to believe that a tle.gpu.alloc buffer was dead after the tle.local_pointers op, allowing scratch allocations to overlap with the still-live buffer and corrupt subsequent loads.

Fix #836.

…ffers

The mthreads backend's Alias.cpp overrode the common implementation
but lacked TLE alias propagation for tle.local_pointers and
pointer-arithmetic chains (tt.splat / tt.addptr).  This caused the
shared-memory allocator to believe that a tle.gpu.alloc buffer was dead
after the tle.local_pointers op, allowing scratch allocations to overlap
with the still-live buffer and corrupt subsequent loads.

Fix flagos-ai#836.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][tle][musa] unexpected modification of values in shared memory

1 participant