take fast path if c2c transform does not need padding or trimming#283
Open
chillenb wants to merge 3 commits intoIntelPython:masterfrom
Open
take fast path if c2c transform does not need padding or trimming#283chillenb wants to merge 3 commits intoIntelPython:masterfrom
chillenb wants to merge 3 commits intoIntelPython:masterfrom
Conversation
|
Can one of the admins verify this patch? |
Author
|
Oops, I didn't realize that the CI would have to be approved again after fixing the whitespace. Sorry! The tests previously approved did run and pass, though. |
Collaborator
It's no problem, thanks for this contribution to the project. :) I'm not sure if any of our tests currently cover this case and compare with e.g. numpy, so adding a test would be good too. |
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.
Thanks for creating and maintaining this package!
If you try to get MKL C-API performance out of this package, you will probably discover that
fftnis very sensitive to the input arguments. Here is an example:This is because
mkl_fft.fftnalways takes a slow path (_iter_fftnd) whens != None. Furthermore, the NumPy and SciPy interfaces don't pass throughs=Noneunchanged, so they are also forced to take this path.This pull request allows
fftnto detect when the inputsargument is equivalent tos=Noneso it can use the faster function_iter_complementary.After these code changes, performance aligns better with expectations:
Test system: dual-socket Xeon Platinum 8268 server.