We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a752870 + a744f80 commit 32b3654Copy full SHA for 32b3654
fft_bench.py
@@ -12,6 +12,13 @@
12
import re
13
import sys
14
15
+try: # Workaround for disabled mkl_fft in latest Intel SciPy
16
+ import mkl_fft
17
+ import mkl_fft._scipy_fft_backend as sfbn
18
+ scipy.fft.set_global_backend(sfbn)
19
+except (ImportError, ModuleNotFoundError, ValueError):
20
+ print("Unable to use mkl_fft as scipy.fft backend")
21
+
22
# Mark which FFT submodules are available...
23
fft_modules = {'numpy.fft': np.fft, 'scipy.fft': scipy.fft}
24
0 commit comments