Go back to my homepage

FFTW 3.2.2 precompiled binaries for Win32 platform

The source codes of FFTW 3.2.2 package are available from http://fftw.org/download.html. The precompiled binaries for Windows platform are also provided by the authors of FFTW package. Those libraries were compiled using MinGW.

Why do we provide our binaries?

Because there is probably a bug in the MinGW-generated binaries. Imagine you want to perform the FFT over LARGE (you reach the limit of PC memory) blocks of memory. In this case, some memory leaks appear. Later, when you want to allocate new memory block of the same size your application fails due to the lack of memory.

An example

  1. Check the size of available memory -> N
  2. Make FFTW plan.
  3. Call buffer = fftw_malloc(N)
  4. Make some FFTW compuations.
  5. Release buffer
  6. Release FFTW plan.
  7. Call fftw_cleanup
  8. Ask for a new buffer of size N -> bad alloc!

Solution

In order to avoid memory troubles we developed Solution for MS Visual Studio 9.0 that can be simply used for building the FFTW binaries using MS Visual Studio. We believe that now the memory management is correct. Since we have started compiling the FFTW in MS Visual Studio 9.0 the troubles with bad alloc have disappeared.

How to compile?

  1. Download the source codes from http://fftw.org/download.html
  2. Unzip the package.
  3. Download our solution with patch
  4. Unzip the patch and copy the content into the unzipped source codes.
  5. Open the solution file that is located in fftw-3.2.2/win32 directory.
  6. Build the library.
  7. Read the file fftw-3.2.2/win32/readme.txt

I am lazy, I want FFTW binaries without compiling them.

If you do not want to compile the binaries on your own, you can download the precompiled binaries we have already prepared. The FFTW library is available in 6 configurations: single, double, long double precision and each of them is built as in release as well as in debug mode. There is also a support for threads.
e-mail: svoboda(at)fi.muni.cz
last modification: March 26, 2010
visitors from March 26, 2010: