[codex] Improve PTODSL frontend ergonomics and API coverage#100
Draft
zhoubot wants to merge 4 commits into
Draft
[codex] Improve PTODSL frontend ergonomics and API coverage#100zhoubot wants to merge 4 commits into
zhoubot wants to merge 4 commits into
Conversation
Co-authored-by: RuoyuZhou <[email protected]>
# Conflicts: # docker/Dockerfile
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.
Summary
ptotensor/tile facadepto.barrier_synchelper and add sync-specific frontend/API coverageWhy
PTODSL was missing a coherent contract and regression layer around the frontend surface while the PTO frontend itself was growing in three directions at once: constexpr specialization, micro-op coverage, and a more ergonomic tensor/tile API. This PR packages those frontend changes together and adds the API hygiene gates needed to keep the public surface intentional.
What Changed
Constexpr,const_expr, andrange_constexprspecialization flowmicromodule plusptore-exports from the PTOAS vPTO manifestpto.ptr,make_tensor,TensorView.slice,make_tile_buffer, and tile-buffer wrapperspto.barrier_syncwrapper added to the public sync surfacetests/apicontract suite with snapshot-backed public export checkstests/regressionhost regression suitemain/manual runsValidation
PYTHONPATH=... python -m pytest -q tests/api->48 passedPYTHONPATH=... python -m pytest -q tests/frontend->28 passedPYTHONPATH=... python -m pytest -q tests/regression->4 passedNotes
row_prod/col_prodwere removed fromtile.__all__because the installed PTO dialect does not provide backing builders for them; direct attribute access remains unchanged.