Skip to content

Consolidate the stable MPS ops into a single shader file. - #9620

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/mps-stable-consolidation
Aug 24, 2026
Merged

NicolasHug merged 1 commit into
mainfrom
adabeyta/mps-stable-consolidation

Conversation

@adabeyta

@adabeyta adabeyta commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Consolidates the per-op MPS shader headers into a single mps_stable_kernels.h, restoring the single shader file layout like unstable mps_kernels.h had. With every MPS op now ported (#9524, #9583, #9612, #9617, #9618, #9619), this is the final Stable-ABI consolidation MPS cleanup and removes the last of the per-op scaffolding.

Notes

  • The six per-op *_metal_shader.h files are deleted.
  • The per-op shader library singletons and metal_type_string copies collapse into a shared shaderLibrary() and visionKernelFunction() in the new header. The process compiles one combined library lazily on first use instead of one per op, matching what the unstable static MetalShaderLibrary did.

@pytorch-bot

pytorch-bot Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9620

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

❌ 1 Unclassified Failure

As of commit de6a2b9 with merge base e6f0400 (image):

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.

@meta-cla meta-cla Bot added the cla signed label Aug 21, 2026
@adabeyta adabeyta changed the title [Test] Consolidate stable MPS shaders into mps_stable_kernels.h. [Test] Consolidate the stable MPS ops into a single shader file. Aug 21, 2026
@adabeyta adabeyta changed the title [Test] Consolidate the stable MPS ops into a single shader file. Consolidate the stable MPS ops into a single shader file. Aug 22, 2026
@adabeyta
adabeyta marked this pull request as ready for review August 22, 2026 18:57
@adabeyta
adabeyta requested a review from NicolasHug August 22, 2026 18:57

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NICE

@NicolasHug
NicolasHug merged commit c7ef957 into main Aug 24, 2026
63 checks passed
@NicolasHug
NicolasHug deleted the adabeyta/mps-stable-consolidation branch August 24, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants