Skip to content

[CI] Workaround broken MacOS-14 behavior - #176161

Closed
malfet wants to merge 1 commit into
gh/malfet/741/basefrom
gh/malfet/741/head
Closed

malfet wants to merge 1 commit into
gh/malfet/741/basefrom
gh/malfet/741/head

Conversation

@malfet

@malfet malfet commented Mar 2, 2026 •

Copy link
Copy Markdown
Collaborator

[ghstack-poisoned]
@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/176161

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

❌ 1 New Failure

As of commit 83a7271 with merge base ee154ef (image):

NEW FAILURE - The following job has failed:

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Mar 2, 2026
@malfet
malfet requested a review from Skylion007 March 2, 2026 14:39
@malfet malfet added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 2, 2026
@malfet
malfet requested a review from manuelcandales March 2, 2026 15:34
@malfet

malfet commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "Lint + all MacOS jobs 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 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
…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
sandy-gags pushed a commit to sandy-gags/pytorch that referenced this pull request Mar 12, 2026
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
@github-actions
github-actions Bot deleted the gh/malfet/741/head branch April 2, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants