Skip to content

[ET-VK][binary] Nest binary operator sources - #23721

Closed
pytorchbot wants to merge 1 commit into
gh/SS-JIA/657/origfrom
gh/SS-JIA/658/orig
Closed

pytorchbot wants to merge 1 commit into
gh/SS-JIA/657/origfrom
gh/SS-JIA/658/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #23491 by @SS-JIA
^ 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/SS-JIA/658/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/658/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/657/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/658/orig
Differential Revision: D123101915
@diff-train-skip-merge

Pull Request resolved: #23491

## Ulterior Motive

Organize Vulkan operators by implementation family so operators with multiple routes can use clear, scalable directory layouts.

## Rationale

**What**: Move standard binary GLSL, YAML, shared shader definitions, and C++ implementations into dedicated `binary/` directories.

**Why**: The flat shader and implementation directories obscure ownership as operator families grow. Binary operators provide a contained validation of nested-source support before reorganizing larger families such as convolution.

## Details

- Move tensor-tensor and tensor-scalar shader templates, YAML variant definitions, and `binary_op_defs.glslh` under `glsl/binary/`, and `q8ta_binary` under `glsl/binary/q8ta/`.
- Move `BinaryOp.cpp` and `BinaryScalarOp.cpp` under `impl/binary/`, and the quantized `Q8taBinary.{h,cpp}` under `impl/binary/q8ta/`.
- Update shader-name validation to address path-qualified template identities, the `Q8taBinary.h` include in `TestQ8taBinary.cpp`, and the binary section labels in `op_registry.py`.
- Moved files are recorded as renames.
- Preserve generated shader names and runtime dispatch behavior.
ghstack-source-id: 446951706
@exported-using-ghexport

Differential Revision: [D123101915](https://our.internmc.facebook.com/intern/diff/D123101915/)
@pytorchbot
pytorchbot requested a review from SS-JIA as a code owner October 13, 2026 01:39
@pytorch-bot

pytorch-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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 Oct 13, 2026
@SS-JIA SS-JIA closed this Oct 13, 2026

This branch was successfully deployed

1 active deployment
cadence — ebcfcaf8 Deployed Oct 13, 2026 by pytorchbot via hifi-op-test / hifi4 #33011
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.

2 participants