[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fftw runtime cpu detection

From: Eric Bavier
Subject: Re: fftw runtime cpu detection
Date: Fri, 6 Apr 2018 10:08:46 -0500
User-agent: Mutt/1.5.17 (2007-11-01)

On Fri, Apr 06, 2018 at 12:54:19AM -0700, Chris Marusich wrote:
> Eric Bavier <address@hidden> writes:
> > I recently discovered that the FFTW library can do runtime cpu
> > detection.
> Cool!  I'm not familiar with this library, but the patch seems pretty
> reasonable to me.

Thanks for looking at it.

> > In order to do this, the package needs to be configured to build SIMD
> > "codelets", like how our 'fftw-avx' currently does.  Then, based on
> > the instruction support detected at runtime, make those kernels
> > available to the fftw "planner" for execution.
> So, if we choose the right configure flags at build time (for the given
> architecture), then at runtime, the software will detect the CPU and
> either perform better or make more features available.  Is that right?

That's the idea, yes.  The simd kernels will execute if the cpu
supports them and the fftw planner finds they are faster in practice
than other kernels.

> I see you added the "--enable-sse" configure flag, and it not present
> before.  Why did you add it?

In the documentation, I had seen it listed as the simd flag for
single-precision.  But now I see a comment in that says
the --enable-sse2 flag Does The Right Thing when --enable-float is
given, so it can be left out.  Thanks for checking!

Eric Bavier, Scientific Libraries, Cray Inc.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]