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.
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
Cache alignment for serial and parallel FFT and IFFT #245
Cache alignment for serial and parallel FFT and IFFT #245
Changes from 20 commits
268ba1d
92e913d
ea8d40b
4c914cc
c3209e6
17c36fe
0fa0619
bb65472
f943e54
119c6a1
1db99ac
0621fe9
1819930
8accac2
e813c65
5c3ad91
670997f
7d64759
e21d988
a03c4a0
695ccc8
8d7ddfb
84ab1ae
62ac380
27ee1e6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What happens when
roots_cache.len()
is2
or less thanMIN_COMPACTION_CHUNKS
? Could you amend the tests to check that as well? Thanks!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.
Hmm the compaction wouldn't happen. So we don't have to worry about it. Notice that cmp::min is only necessary for MIN_COMPACTION_CHUNKS = 1, since chunks > 0.
If roots_cache.len() < MIN_COMPACTION_CHUNKS, then
chunks <= xi.len() / 2 = roots_cache.len() < MIN_COMPACTION_CHUNKS
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.
Ok sounds good, a comment to that effect would be great.