Skip to content

[Ascend] Preserve buffer view layouts on shared storage - #11

Open
Denverjin wants to merge 7 commits into
mainfrom
codex/ascend-conflict-storage-rings
Open

Denverjin wants to merge 7 commits into
mainfrom
codex/ascend-conflict-storage-rings

Conversation

@Denverjin

@Denverjin Denverjin commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Keep layouts attached to individual buffers created by T.view or T.reshape while their shared .data determines allocation and version ownership. Cube operands can use distinct MajorK/MajorMN layouts on one L0B ring, and UB views retain their own annotated address mappings.

Infer each view's layout independently and inherit missing layouts only when unambiguous. Normalize Cube padding per Buffer, match reshaped views to their own matrix layout, and check shared physical capacity after padding. Preserve typed pointers through Copy/GEMM lowering so each access uses the correct view.

Cube aliases require dense logical strides, zero base offset, equal element widths, and equal padded storage sizes. Views reinterpret existing storage without moving values; producers must write the representation expected by consumers. Use T.access_ptr(view[...], ...) when passing a view to an intrinsic.

Keep independent buffer layouts while an isolated compatible L0B pair uses one version clock and physical owner dependencies. Preserve the ordinary path for incompatible or nested owners.

Validate retimed and unequal owner lengths, allocation reuse controls, and repeated device launches.
@Denverjin Denverjin changed the title [Ascend] Reuse storage and L0B rings for explicit conflict hints [Ascend] Share storage rings across conflict hints and Cube views Oct 22, 2026
@Denverjin Denverjin changed the title [Ascend] Share storage rings across conflict hints and Cube views [Ascend] Preserve independent Cube layouts on shared buffer views Oct 22, 2026
@Denverjin Denverjin changed the title [Ascend] Preserve independent Cube layouts on shared buffer views [Ascend] Preserve buffer view layouts on shared storage Oct 22, 2026
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.

1 participant