Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176161
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 83a7271 with merge base ee154ef ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
manuelcandales
approved these changes
Mar 2, 2026
Collaborator
Author
|
@pytorchbot merge -f "Lint + all MacOS jobs are green" |
Collaborator
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
pytorchmergebot
pushed a commit
that referenced
this pull request
Mar 2, 2026
) For sub-32-bit types (half, bfloat16, int8, int16), index_reduce uses atomic<uint> (4-byte) compare-exchange to implement thread-safe reductions. When the result tensor has a storage offset that isn't 4-byte aligned (e.g. bfloat16 with odd storage_offset gives a 2-byte misaligned buffer pointer), the atomic operations hit undefined behavior and silently fail. Fix by detecting the misalignment in the kernel via pointer-to-integer cast, backing the pointer up to the nearest aligned boundary, and compensating in the element offset passed to atomic_binary_op. Authored with Claude. Pull Request resolved: #176009 Approved by: https://github.com/albanD ghstack dependencies: #176161
postmath
pushed a commit
to postmath/pytorch
that referenced
this pull request
Mar 3, 2026
Fixes pytorch#176123 and pytorch#176102 Pull Request resolved: pytorch#176161 Approved by: https://github.com/manuelcandales
postmath
pushed a commit
to postmath/pytorch
that referenced
this pull request
Mar 3, 2026
…rch#176009) For sub-32-bit types (half, bfloat16, int8, int16), index_reduce uses atomic<uint> (4-byte) compare-exchange to implement thread-safe reductions. When the result tensor has a storage offset that isn't 4-byte aligned (e.g. bfloat16 with odd storage_offset gives a 2-byte misaligned buffer pointer), the atomic operations hit undefined behavior and silently fail. Fix by detecting the misalignment in the kernel via pointer-to-integer cast, backing the pointer up to the nearest aligned boundary, and compensating in the element offset passed to atomic_binary_op. Authored with Claude. Pull Request resolved: pytorch#176009 Approved by: https://github.com/albanD ghstack dependencies: pytorch#176161
sandy-gags
pushed a commit
to sandy-gags/pytorch
that referenced
this pull request
Mar 12, 2026
Fixes pytorch/pytorch#176123 and pytorch/pytorch#176102 ghstack-source-id: c64cc3a Pull-Request: pytorch/pytorch#176161
sandy-gags
pushed a commit
to sandy-gags/pytorch
that referenced
this pull request
Mar 12, 2026
Fixes pytorch/pytorch#176123 and pytorch/pytorch#176102 ghstack-source-id: c64cc3a Pull-Request: pytorch/pytorch#176161
EmanueleCoradin
pushed a commit
to EmanueleCoradin/pytorch
that referenced
this pull request
Mar 30, 2026
Fixes pytorch#176123 and pytorch#176102 Pull Request resolved: pytorch#176161 Approved by: https://github.com/manuelcandales
EmanueleCoradin
pushed a commit
to EmanueleCoradin/pytorch
that referenced
this pull request
Mar 30, 2026
…rch#176009) For sub-32-bit types (half, bfloat16, int8, int16), index_reduce uses atomic<uint> (4-byte) compare-exchange to implement thread-safe reductions. When the result tensor has a storage offset that isn't 4-byte aligned (e.g. bfloat16 with odd storage_offset gives a 2-byte misaligned buffer pointer), the atomic operations hit undefined behavior and silently fail. Fix by detecting the misalignment in the kernel via pointer-to-integer cast, backing the pointer up to the nearest aligned boundary, and compensating in the element offset passed to atomic_binary_op. Authored with Claude. Pull Request resolved: pytorch#176009 Approved by: https://github.com/albanD ghstack dependencies: pytorch#176161
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
Fixes #176123 and #176102