View Single Post
Old 2011-03-07, 04:14   #446
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

MacLucasFFTW with fftw-3.2.2 version.
Code:
$ tar -xvf MacLucasFFTW.fftw-3.2.2.tar.bz2
$ cd MacLucasFFTW.fftw-3.2.2/
MacLucasFFTW.fftw-3.2.2$ make
MacLucasFFTW.fftw-3.2.2$ time ./MacLucasFFTW 11213M( 11213 )P, n = 640, MacLucasFFTW v8.1  Ballester

real    0m0.542s
user    0m0.440s
sys     0m0.000s
This version use
Code:
forw=fftw_plan_r2r_1d(n,(double *)x,(double*)x,FFTW_R2HC,FFTW_ESTIMATE);
back=fftw_plan_r2r_1d(n,(double *)x,(double *) x,FFTW_HC2R,FFTW_ESTIMATE);
But this function not support with CUFFT.
I want change to
Code:
forw=fftw_plan_dft_r2c_1d(n,(double *)x,(fftw_complex *) x,FFTW_ESTIMATE);
back=fftw_plan_dft_c2r_1d(n,(fftw_complex *)x,(double *) x,FFTW_ESTIMATE);
It is not work.
Attached Files
File Type: bz2 MacLucasFFTW.fftw-3.2.2.tar.bz2 (27.8 KB, 159 views)
msft is offline   Reply With Quote