Skip to content

[ROCm] Improve non stride-one backwards indexing for small index sets#164409

Closed
doru1004 wants to merge 1 commit intopytorch:mainfrom
doru1004:fix-index-backwards-perf
Closed

[ROCm] Improve non stride-one backwards indexing for small index sets#164409
doru1004 wants to merge 1 commit intopytorch:mainfrom
doru1004:fix-index-backwards-perf

Conversation

@doru1004
Copy link
Contributor

@doru1004 doru1004 commented Oct 1, 2025

This patch fixes a performance problem which occurs when a small set of indices is used and there are practically no duplicates.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 1, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 0da9449 with merge base 59a86cb (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added module: rocm AMD GPU support for Pytorch release notes: cuda release notes category labels Oct 1, 2025
@mikaylagawarecki mikaylagawarecki added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 2, 2025
@doru1004 doru1004 force-pushed the fix-index-backwards-perf branch from add600a to 0da9449 Compare October 7, 2025 20:57
@doru1004 doru1004 requested a review from Aidyn-A as a code owner October 7, 2025 20:57
@jeffdaily jeffdaily added release notes: rocm mandatorylabel ciflow/rocm Trigger "default" config CI on ROCm ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 and removed release notes: cuda release notes category labels Oct 7, 2025
jerrymannil pushed a commit to ROCm/pytorch that referenced this pull request Oct 8, 2025
@jeffdaily
Copy link
Collaborator

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 8, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

rocm-repo-management-api bot pushed a commit to ROCm/pytorch that referenced this pull request Oct 9, 2025
rocm-repo-management-api bot pushed a commit to ROCm/pytorch that referenced this pull request Oct 10, 2025
rocm-repo-management-api bot pushed a commit to ROCm/pytorch that referenced this pull request Oct 16, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
…pytorch#164409)

This patch fixes a performance problem which occurs when a small set of indices is used and there are practically no duplicates.

Pull Request resolved: pytorch#164409
Approved by: https://github.com/jerrymannil, https://github.com/jeffdaily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm Trigger "default" config CI on ROCm ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/trunk Trigger trunk jobs on your pull request Merged module: rocm AMD GPU support for Pytorch open source release notes: rocm mandatorylabel triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants