Repository navigation
Conversation
Summary: A Helion target, pinned offline for one chip, lists the variants that beat the MLX lowering of an op's calls: each the call it serves (exact shapes, and for ints a value or an IntRange), the launches that compute it (kernel, config, explicit input wiring) and its results. Registration checks each variant's wiring, that its tensor sizes are exact (a launch's grid is fixed when it is captured), and that no two variants of an op can match one call, and keeps an immutable snapshot under the target's name, with shapes as tuples so that a target written with lists matches the calls it pins. dtype_name and DTYPES name dtypes as a TensorSpec does. Nothing reads a target yet: the next commits capture its launches and build them into the runtime. This diff was authored with the help of AI coding agents. Reviewed By: digantdesai Differential Revision: D135440012
Summary: codegen/capture.py captures a pinned launch with Helion's capture_metal_launches on placeholder MPS tensors (nothing is compiled or dispatched) and arranges it for MLX's metal_kernel. The capture names its output dtypes as the registry does and records the kernel's parameter names, which the launch's arguments follow. Helion is imported on the first capture, so only the tools that capture launches need it. Nothing calls it yet: the generator that builds a target's launches into the runtime does. This diff was authored with the help of AI coding agents. Reviewed By: digantdesai Differential Revision: D135498635
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/26106
Note: Links to docs will display an error until the docs builds have been completed. ❌ 97 Pending, 1 Unclassified FailureAs of commit 58e34dc with merge base 7de3ecb ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
|
@yushangdi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135498635. |
digantdesai
approved these changes
Dec 5, 2026
digantdesai
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
This branch has not been deployed
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:
codegen/capture.py captures a pinned launch with Helion's
capture_metal_launches on placeholder MPS tensors (nothing is compiled or
dispatched) and arranges it for MLX's metal_kernel. The capture names its
output dtypes as the registry does and records the kernel's parameter names,
which the launch's arguments follow. Helion is imported on the first capture,
so only the tools that capture launches need it. Nothing calls it yet: the
generator that builds a target's launches into the runtime does.
This diff was authored with the help of AI coding agents.
Reviewed By: digantdesai
Differential Revision: D135498635