Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions fft_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
import re
import sys

try: # Workaround for disabled mkl_fft in latest Intel SciPy
import mkl_fft
import mkl_fft._scipy_fft_backend as sfbn
scipy.fft.set_global_backend(sfbn)
except (ImportError, ModuleNotFoundError, ValueError):
print("Unable to use mkl_fft as scipy.fft backend")

# Mark which FFT submodules are available...
fft_modules = {'numpy.fft': np.fft, 'scipy.fft': scipy.fft}

Expand Down