Skip to content

[BE] Move repeated code into helper functions#158178

Closed
malfet wants to merge 1 commit intogh/malfet/436/basefrom
gh/malfet/436/head
Closed

[BE] Move repeated code into helper functions#158178
malfet wants to merge 1 commit intogh/malfet/436/basefrom
gh/malfet/436/head

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Jul 12, 2025

Stack from ghstack (oldest at bottom):

Namely index_get_offsets, giving thread index computes offsets into
input, output and indices tensors
And index_apply_indices applies offests to either input or output
tensor index

Namely `index_get_offsets`, giving thread index computes offsets into
input, output and indices tensors
And `index_apply_indices` applies offests to either input or output
tensor index

[ghstack-poisoned]
@malfet malfet requested a review from kulinseth as a code owner July 12, 2025 02:29
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 12, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 381ac34 with merge base dd93883 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Jul 12, 2025
@malfet malfet requested a review from dcci July 12, 2025 02:30
@malfet malfet added the topic: not user facing topic category label Jul 12, 2025
@malfet
Copy link
Contributor Author

malfet commented Jul 12, 2025

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

@pytorchmergebot
Copy link
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 Jul 14, 2025
That fixes `index_put(..., accumulate=True)` for all dtypes

int64 operation is not really atomic, but eventually consistent from the `index_put_accumulate` kernel point of view: i.e. by the end of the operation results in the global memory are indeed accumulation of the operands at given indices
Pull Request resolved: #158179
Approved by: https://github.com/dcci, https://github.com/Skylion007
ghstack dependencies: #158064, #158178
@github-actions github-actions bot deleted the gh/malfet/436/head branch August 12, 2025 02:18
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) Merged release notes: mps Release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants