[codex] Generate per-tile-op PTO micro examples#6
Merged
Conversation
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
.ptofile per public tile op that already has a micro-backed implementationptodsl/lib/a5/generated/tile_opsWhy
The repo already had micro-backed A5 tile helpers, but it only emitted a small fixed example set. This change makes the tile-op coverage concrete by generating one
.ptoartifact per supported tile op so each file shows the micro instructions that build that tile op.What changed
ptodsl/lib/a5/tile_op_kernels.pyas the per-op builder tablescripts/generate_tile_op_pto.pyto regenerate the tile-op corpus.ptofiles underptodsl/lib/a5/generated/tile_opsTILE_OP_GENERATION_INDEX.mdto record generated vs blocked/not-applicable tile opstests/regression/test_generated_tile_op_pto.pyValidation
PYTHONPATH=/Users/zhoubot/github/.llvm-19.1.7/build-mlir-py312/tools/mlir/python_packages/mlir_core:/Users/zhoubot/github/pto-org/PTOAS/install-src312:/Users/zhoubot/github/pto-org/PTOAS/build-src312/python /Users/zhoubot/github/.venv-ptoas-src312/bin/python scripts/generate_tile_op_pto.pyPYTHONPATH=/Users/zhoubot/github/.llvm-19.1.7/build-mlir-py312/tools/mlir/python_packages/mlir_core:/Users/zhoubot/github/pto-org/PTOAS/install-src312:/Users/zhoubot/github/pto-org/PTOAS/build-src312/python /Users/zhoubot/github/.venv-ptoas-src312/bin/python -m pytest -q tests/regression61 passed in 2.10s