-
Notifications
You must be signed in to change notification settings - Fork 75
[ROCm] Limit number of values per thread for reductions on three dimensions #2460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Jenkins build for 53fbf7866d00ae012510c041cb5c3e13d3a1c214 commit finished as FAILURE |
|
reproducer details at pytorch#159652 (comment) |
pruthvistony
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check for any regressing models, may need to rebase the numbers.
|
! cherry-pick --onto release/2.8 |
…nsions (#2460) In the current implementation of reductions in three dimensions for AMD GPUs the number of values per thread is unbounded and can end up being in the hundreds of thousands for certain tensors. This of course is bad for performance. This patch fixes this issue by increasing the parallelism and thus lowering the number of value per thread to reasonable limits i.e. less than 2048 values per thread. The performance gains can be between 10x-17x for certain examples where the number of values per thread was originally very high. cherry-pick of pytorch#159652
|
Created branch autogenerated/release/2.8_cherry-pick_pr-2460 and #2469 |
In the current implementation of reductions in three dimensions for AMD GPUs the number of values per thread is unbounded and can end up being in the hundreds of thousands for certain tensors. This of course is bad for performance. This patch fixes this issue by increasing the parallelism and thus lowering the number of value per thread to reasonable limits i.e. less than 2048 values per thread. The performance gains can be between 10x-17x for certain examples where the number of values per thread was originally very high.
cherry-pick of pytorch#159652
Cherry-picked to release/2.8 branch via #2469