Skip to content

[ET Device Support] Add NonConstBufferDevice schema for per-buffer device mapping#19499

Merged
Gasoonjia merged 1 commit into
gh/gasoonjia/169/basefrom
gh/gasoonjia/169/head
May 12, 2026
Merged

[ET Device Support] Add NonConstBufferDevice schema for per-buffer device mapping#19499
Gasoonjia merged 1 commit into
gh/gasoonjia/169/basefrom
gh/gasoonjia/169/head

Conversation

@Gasoonjia
Copy link
Copy Markdown
Contributor

@Gasoonjia Gasoonjia commented May 12, 2026

Stack from ghstack (oldest at bottom):

Adds the NonConstBufferDevice table to the FlatBuffer schema (program.fbs) and the
corresponding Python dataclass to schema.py. This enables mapping each non-constant
planned memory buffer to a specific device type (CPU, CUDA, etc.).

The field is optional and absent for CPU-only programs, ensuring zero binary size regression.

Differential Revision: D97335597

…vice mapping

Adds the NonConstBufferDevice table to the FlatBuffer schema (program.fbs) and the
corresponding Python dataclass to schema.py. This enables mapping each non-constant
planned memory buffer to a specific device type (CPU, CUDA, etc.).

The field is optional and absent for CPU-only programs, ensuring zero binary size regression.

Differential Revision: [D97335597](https://our.internmc.facebook.com/intern/diff/D97335597/)

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 12, 2026

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

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 May 12, 2026
@Gasoonjia Gasoonjia merged commit d72fd5c into gh/gasoonjia/169/base May 12, 2026
164 of 167 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/169/head branch May 12, 2026 05:14
@Gasoonjia Gasoonjia temporarily deployed to cherry-pick-bot May 12, 2026 05:14 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Gasoonjia added a commit that referenced this pull request May 12, 2026
…vice mapping (#19500)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #19499 by
@Gasoonjia
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/169/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/169/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/169/orig
Differential Revision:
[D97335597](https://our.internmc.facebook.com/intern/diff/D97335597/)
@diff-train-skip-merge

Co-authored-by: gasoonjia <gasoonjia@icloud.com>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant