Skip to content

[MPS] Fix masked_fill for non-contig outputs - #176171

Closed
malfet wants to merge 3 commits into
gh/malfet/743/basefrom
gh/malfet/743/head
Closed

malfet wants to merge 3 commits into
gh/malfet/743/basefrom
gh/malfet/743/head

Conversation

@malfet

@malfet malfet commented Mar 2, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

By doing standard needs_gather trick, where output is temporary copied from the input

Fixes #176159

[ghstack-poisoned]
@malfet
malfet requested a review from kulinseth as a code owner March 2, 2026 15:47
@pytorch-bot

pytorch-bot Bot commented Mar 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 3 Pending

As of commit 6d57d0e with merge base c97fd51 (image):
💚 Looks good so far! There are no failures yet. 💚

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

malfet added a commit that referenced this pull request Mar 2, 2026
By doing standard needs_gather trick, where output is temporary copied from the input


ghstack-source-id: 513c247
Pull-Request: #176171
@pytorch-bot pytorch-bot Bot added the ciflow/mps Run MPS tests (subset of trunk) label Mar 2, 2026
@pytorch-bot pytorch-bot Bot added the release notes: mps Release notes category label Mar 2, 2026
@malfet malfet added the topic: bug fixes topic category label Mar 2, 2026
@malfet malfet added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 2, 2026
[ghstack-poisoned]
malfet added a commit that referenced this pull request Mar 2, 2026
By doing standard needs_gather trick, where output is temporary copied from the input

ghstack-source-id: cc8ae53
Pull-Request: #176171
[ghstack-poisoned]
malfet added a commit that referenced this pull request Mar 2, 2026
By doing standard needs_gather trick, where output is temporary copied from the input

ghstack-source-id: 74dc204
Pull-Request: #176171
@malfet

malfet commented Mar 3, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "Lint + MPS + Mac are green"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Mar 3, 2026
As project has been moved out of core for quite some time
Pull Request resolved: #176301
Approved by: https://github.com/albanD
ghstack dependencies: #176171
pytorchmergebot pushed a commit that referenced this pull request Mar 3, 2026
pytorchmergebot pushed a commit that referenced this pull request Mar 3, 2026
postmath pushed a commit to postmath/pytorch that referenced this pull request Mar 3, 2026
By doing standard needs_gather trick, where output is temporary copied from the input

Fixes pytorch#176159
Pull Request resolved: pytorch#176171
Approved by: https://github.com/Skylion007
postmath pushed a commit to postmath/pytorch that referenced this pull request Mar 3, 2026
As project has been moved out of core for quite some time
Pull Request resolved: pytorch#176301
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#176171
postmath pushed a commit to postmath/pytorch that referenced this pull request Mar 3, 2026
postmath pushed a commit to postmath/pytorch that referenced this pull request Mar 3, 2026
sandy-gags pushed a commit to sandy-gags/pytorch that referenced this pull request Mar 12, 2026
By doing standard needs_gather trick, where output is temporary copied from the input

ghstack-source-id: 74dc204
Pull-Request: pytorch/pytorch#176171
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
By doing standard needs_gather trick, where output is temporary copied from the input

Fixes pytorch#176159
Pull Request resolved: pytorch#176171
Approved by: https://github.com/Skylion007
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
As project has been moved out of core for quite some time
Pull Request resolved: pytorch#176301
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#176171
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
@github-actions
github-actions Bot deleted the gh/malfet/743/head branch April 3, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: mps Release notes category topic: bug fixes topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants