feat(hip): add payload-driven shapes and bulk readback - #642
Draft
fhanuman wants to merge 1 commit into
Draft
Conversation
|
Thanks for opening a PR! This project follows LLVM's incremental-development and AI-tool-use Before requesting review, please check that:
Reviewers are assigned through |
L2 Accuracy Results (EP vs CPU)
Threshold: 0.01 | Run: 3875 - Commit: |
MorphiZen EP Performance Results
EPContext Export Performance
OGA Benchmark Results
OGA Wheel Smoke (Python benchmark_e2e.py)
Run: 3875 - Commit: |
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 5, 2026 21:56
9f56d5d to
f2da195
Compare
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 6, 2026 21:00
f2da195 to
45180d4
Compare
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 7, 2026 19:51
45180d4 to
6d2e2a1
Compare
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 7, 2026 20:25
6d2e2a1 to
d729eba
Compare
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 10, 2026 21:59
d729eba to
9f4631e
Compare
fhanuman
changed the base branch from
pr/shape-stack-03-broadcast-reduction
to
pr/shape-stack-03b-loop-carriers
August 10, 2026 22:02
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
2 times, most recently
from
August 10, 2026 23:33
2d81f1c to
1c67817
Compare
Keep payload-derived destinations exact across conversion and reification, consume visible constant carriers directly, and batch runtime integer controls into host SSA before allocation and dispatch. Co-Authored-By: GPT-5.6 Sol <noreply@openai.com> Made-with: Cursor
fhanuman
force-pushed
the
pr/shape-stack-04-payload-readback
branch
from
August 11, 2026 00:42
1c67817 to
b2ad556
Compare
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
Add a payload-driven shape path for operations whose output dimensions depend on runtime tensor values.
hip.readback_shapewith bufferization, LLVM lowering, and real/mock runtime support for one synchronized vector readback;The readback operation, bufferization model, lowering, runtime ABI, and payload consumers are included in the same layer.
Stack
This is PR 7 of 12 and depends on PR 6:
AI assistance
AI tools assisted with the payload-shape refactoring and stack reconstruction. The changes were checked with the authoritative local build, focused payload LIT, and GPU-vs-CPU shape-operation tests.
Made with Cursor