Skip to content

Helion targets: pinned kernel variants per chip (#26100) - #26100

Closed
yushangdi wants to merge 1 commit into
pytorch:mainfrom
yushangdi:export-D135440012
Closed

yushangdi wants to merge 1 commit into
pytorch:mainfrom
yushangdi:export-D135440012

Conversation

@yushangdi

@yushangdi yushangdi commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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

@pytorch-bot

pytorch-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/26100

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 12 Pending

As of commit d964fd2 with merge base 7de3ecb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 4, 2026
@meta-codesync

meta-codesync Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@yushangdi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135440012.

@digantdesai digantdesai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot changed the title Helion targets: pinned kernel variants per chip Helion targets: pinned kernel variants per chip (#26100) Dec 5, 2026
yushangdi added a commit to yushangdi/executorch that referenced this pull request Dec 5, 2026
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:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants