Repository navigation
feat(rocfft): Add support for 32/64 bit index arithmetic on Stockham Kernels - #11037
Merged
eng-flavio-teixeira merged 70 commits intoSep 16, 2026
Merged
eng-flavio-teixeira merged 70 commits into
eng-flavio-teixeira merged 70 commits into
Conversation
- Add 64 bit index check to generate_node().
- Fix issue with rtc test harness.
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #11037 +/- ##
===========================================
- Coverage 70.23% 69.63% -0.60%
===========================================
Files 2810 2826 +16
Lines 462535 469975 +7440
Branches 68104 69410 +1306
===========================================
+ Hits 324829 327246 +2417
- Misses 114186 119011 +4825
- Partials 23520 23718 +198
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
af-ayala
reviewed
Sep 1, 2026
af-ayala
approved these changes
Sep 1, 2026
regan-amd
self-requested a review
September 2, 2026 23:02
eng-flavio-teixeira
enabled auto-merge (squash)
September 3, 2026 19:36
eng-flavio-teixeira
disabled auto-merge
September 3, 2026 19:51
regan-amd
reviewed
Sep 4, 2026
regan-amd
left a comment
Contributor
There was a problem hiding this comment.
This is the most significant feedback from a first pass (a deeper review will follow).
evetsso
approved these changes
Sep 9, 2026
regan-amd
approved these changes
Sep 9, 2026
regan-amd
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the tests. Some minor notes/suggestions but LGTM
regan-amd
approved these changes
Sep 9, 2026
regan-amd
reviewed
Sep 10, 2026
Contributor
TheRock Submodule Bump ActivityNewest first
|
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.
Motivation
Add the ability to switch between 32/64-bit integer arithmetic for the remaining kernels (Stockham, Bluestein, Real/Complex copy kernels, Twiddles, and Chirp).
JIRA ID: AIFFT-462
Technical Details
As previously implemented for the transpose kernel, the actual problem size is checked to decide the tightest integral type for the kernels involved in the computations.
A genuine effort has been made to determine if the integral types can be made 32-bit regardless of the FFT size, or if they need to be widened to 64-bit for large enough FFTs:
This PR is IMO a step forward if, in the future, we decide to completely eliminate 64-bit integral types from the Stockham kernels, i.e., by passing an already offset pointer to memory in such a way that the kernel only needs 32-bit indexing to reach the work dataset. This is a larger change since it requires a complete redesign on how the kernels actually compute their indices work set.
There should be no observable performance changes for the FFTs we test. The Stockham kernels now have less register pressure on reasonably sized FFTs due to the switch to 32-bit arithmetic. The changes here, however, are not enough to affect occupancy - but, if callbacks or additional user computations are fused in the FFT kernels then there is more headroom to still maintain the same occupancy.
Other minor changes:
There is a pre-existing issue with large twiddle tables where, for example, a very large 1D, unbatched transform with length > 2^32
./rocfft-bench --length 8589934592 -t 0 --precision singlefail to run and throw an exception because the twiddle table look up calculation (TWLstep1 to TWLStep4) does not handle a length larger than 32 bit:
I will add a separate issue and fix for this one.
Test Plan
Existing tests should exercise the changes in this PR.
Test Result
The tests should pass without any issues. No performance regressions should be observed.
Submission Checklist