Skip to content
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

reshape hack so that ESPIRIT is compatible with the MKL backend of FFTW #118

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

JakobAsslaender
Copy link
Member

Hi,
it seems that FFTW with the MKL backend does not support calls like fft!(x, 3:ndims(x)):
JuliaMath/FFTW.jl#252

I implemented a hack to circumvent this problem by doing a reshape and then calling fft!(x, 2:ndims(x)-1). If found virtually no speed regression when using the FFTW backend and, well, no error when using the MKL backend ;). (I tested it speed wise with the small example in the test and replace @time with @btime for reliable benchmarking.

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2022

Codecov Report

Base: 66.68% // Head: 66.68% // No change to project coverage 👍

Coverage data is based on head (e1c28e7) compared to base (8d19c14).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #118   +/-   ##
=======================================
  Coverage   66.68%   66.68%           
=======================================
  Files          37       37           
  Lines        1696     1696           
=======================================
  Hits         1131     1131           
  Misses        565      565           
Impacted Files Coverage Δ
src/Tools/CoilSensitivity.jl 73.41% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tknopp
Copy link
Member

tknopp commented Oct 8, 2022

Oh this is ugly but I am pragmatic here. The code still makes sense and it basically says: Ignore all dimensions before the spatial ones. So fine for me.

@tknopp tknopp merged commit 4e2095a into master Oct 8, 2022
@tknopp tknopp deleted the ESPIRIT_MKL_compatibility branch October 8, 2022 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants