[SciPy-User] Can fftconvolve use a faster fft?
Christoph Gohlke
cgohlke at uci.edu
Sat Jan 13 14:07:08 EST 2018
On 1/13/2018 12:50 AM, Ralf Gommers wrote:
>
>
> On Sat, Jan 13, 2018 at 2:26 AM, Neal Becker <ndbecker2 at gmail.com
> <mailto:ndbecker2 at gmail.com>> wrote:
>
> I found this:
> https://github.com/IntelPython/mkl_fft
> <https://github.com/IntelPython/mkl_fft>
>
>
> Ah yes. From memory: because neither NumPy nor SciPy allow switching the
> implementation, this does some monkeypatching of numpy.fft directly.
> Probably that's what's shipped in Anaconda then, given the benchmark
> link below.
>
> Everyone wants to get rid of such monkeypatching though, hence the
> support for different backends within numpy and(/or) scipy itself is needed.
>
> Ralf
Anaconda's numpy is patched to use mkl_fft when available:
<https://github.com/AnacondaRecipes/numpy-feedstock/blob/master/recipe/0001-use-mklfft-when-available.patch>
Christoph
>
>
>
>
> Not sure if using this (not even sure how) would improve scipy
> fft_convolve though.
>
> On Thu, Jan 11, 2018 at 10:07 PM Frederic Turmel <me at fredt.org
> <mailto:me at fredt.org>> wrote:
>
> I'm confused. I though it was default
> See
> https://www.google.com/amp/s/amp.reddit.com/r/Python/comments/44klx4/anaconda_25_release_now_with_mkl_optimizations/
> <https://www.google.com/amp/s/amp.reddit.com/r/Python/comments/44klx4/anaconda_25_release_now_with_mkl_optimizations/>
>
> Benchmark
> https://github.com/ContinuumIO/mkl-optimizations-benchmarks/blob/master/README.md
> <https://github.com/ContinuumIO/mkl-optimizations-benchmarks/blob/master/README.md>
>
> On Jan 11, 2018 12:39 PM, Ralf Gommers <ralf.gommers at gmail.com
> <mailto:ralf.gommers at gmail.com>> wrote:
>
>
>
> On Fri, Jan 12, 2018 at 9:18 AM, Frederic Turmel
> <me at fredt.org <mailto:me at fredt.org>> wrote:
>
> If you use anaconda by default it will install the MKL
> version of scipy and numpy.
>
>
> True, but that won't make scipy or numpy use the MKL FFT
> capabilities.
>
> We need a switchable backend for this, we have had
> discussions with one of the Intel MKL engineers on this.
>
> Ralf
>
>
>
> On Jan 11, 2018 11:03 AM, Ralf Gommers
> <ralf.gommers at gmail.com <mailto:ralf.gommers at gmail.com>>
> wrote:
>
>
>
> On Fri, Jan 12, 2018 at 3:16 AM, Neal Becker
> <ndbecker2 at gmail.com <mailto:ndbecker2 at gmail.com>>
> wrote:
>
> Can fftconvolve use fftw, or mkl fft?
>
>
> Yes, with pyfftw:
> https://hgomersall.github.io/pyFFTW/sphinx/tutorial.html?highlight=fftconvolve#monkey-patching-3rd-party-libraries
> <https://hgomersall.github.io/pyFFTW/sphinx/tutorial.html?highlight=fftconvolve#monkey-patching-3rd-party-libraries>
>
> Ralf
>
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at python.org <mailto:SciPy-User at python.org>
> https://mail.python.org/mailman/listinfo/scipy-user
> <https://mail.python.org/mailman/listinfo/scipy-user>
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at python.org <mailto:SciPy-User at python.org>
> https://mail.python.org/mailman/listinfo/scipy-user
> <https://mail.python.org/mailman/listinfo/scipy-user>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at python.org <mailto:SciPy-User at python.org>
> https://mail.python.org/mailman/listinfo/scipy-user
> <https://mail.python.org/mailman/listinfo/scipy-user>
>
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at python.org
> https://mail.python.org/mailman/listinfo/scipy-user
>
More information about the SciPy-User
mailing list