[Feature] [Layout] Add layout of global buffer#53
Merged
wanghz18 merged 2 commits intotilelang_mesh_mainfrom Feb 10, 2026
Merged
[Feature] [Layout] Add layout of global buffer#53wanghz18 merged 2 commits intotilelang_mesh_mainfrom
wanghz18 merged 2 commits intotilelang_mesh_mainfrom
Conversation
wanghz18
reviewed
Feb 5, 2026
Collaborator
wanghz18
left a comment
There was a problem hiding this comment.
整体没有问题,但是有一个小的concern。印象里有些地方会遍历layoutmap,然后针对[buffer, layout]做处理,如果现在layoutmap里新增了这些global的layout是否会导致报错,因为他的处理逻辑基本都是默认是shared或者local。不过目前在分支上简单跑了一些例子,没遇到问题。
wanghz18
reviewed
Feb 6, 2026
Collaborator
Author
我查了一下,确实有很多地方遍历layoutmap,对layout的修改也没有作检查,所以我修改了一下,现在单独加了一个 global_layout_map,使用 LowerArgs.global_layout_map 来获取 global tensor layout |
wanghz18
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add MeshTensor into LayoutMap in layout_inference, so that they can be used easily for lowering