2008年12月20日

complie fftw in MKL

MKL has fftw in it. But you need to cimpile it before using. 
The compile procedure is reference by "FFTW to Intel® Math Kernel Library Wrappers Technical User Notes for FFTW 2.x". compiler procedure is specified as bleow:
1. copy the head file from ".\include\fftw" to ".\interfaces\fftw2xf";
2.execute the ms compiler in start menu->msdv->tool
3.execute : " nmake lib32 F=ms"    to build 32 library;
4.execute:" nmake libem64t F=ms" to build 64 library;
if the 4 have erroe. change the make file of line:
"
libem64t:                   
IF /I $F==ms ( exit ) ELSE ( nmake ..\..\em64t\lib\fftw2xf_$F.lib IE=i ARCH=em64t )"
to 
"
libem64t:                   
( nmake ..\..\em64t\lib\fftw2xf_$F.lib IE=i ARCH=em64t )
"
5. The complied library can be found in ".\MKL\lib"