Today i try the simpleCUFFT, and interact with changing the size of input SIGNAL.
The test FAILED when change the size of the signal to 5000, it still passed with signal size 4000
I did some simple test to get the free memory at every important phase by adding code cuMemGetInfo( &theFree, &theTotal ). But what puzzle me is that it seems that after creating the FFT plan, the free memory do not change any more. Any one can gime me a explain ?
my card is Quardro FX5600
below is my test result:
the Total Memory is :1610285056
Input data size : 1018 x 1018
Convolution kernel size : 7 x 7
Padded image size : 1024 x 1024
Aligned padded image size : 1024 x 1024
Allocating memory...
Generating random input data...
Before Creating FFT plan!
the Free Memory is :1530855424 the Total Memory is :1610285056
Creating FFT plan for 1024 x 1024...
After Creating FFT plan!
the Free Memory is :1522466816 the Total Memory is :1610285056
Uploading to GPU and padding convolution kernel and input data...
...initializing padded kernel and data storage with zeroes...
...copying input data and convolution kernel from host to CUDA arrays
...binding CUDA arrays to texture references
...padding convolution kernel
...padding input data array
After padding input data, starting FFT transformation!
the Free Memory is :1522466816 the Total Memory is :1610285056
Transforming convolution kernel...
finish FFT kernel transformation,start running GPU FFT convolution
the Free Memory is :1522466816 the Total Memory is :1610285056
Running GPU FFT convolution...
finish input data transformation, start multiplying operation
the Free Memory is :1522466816 the Total Memory is :1610285056
finish multiplying operation, and start inverse FFT!
the Free Memory is :1522466816 the Total Memory is :1610285056
GPU time: 11.077584 msecs. //93.551444 MPix/s
finish inverse FFT!
the Free Memory is :1522466816 the Total Memory is :1610285056
Reading back GPU FFT results...
Checking GPU results...
...running reference CPU convolution
CPU time: 3587.733154 msecs. //0.288852 MPix/s
the performance diversity is :323.873244
...comparing the results
L2 norm: 2.053509E-007
TEST PASSED
Shutting down...
Press ENTER to exit...
next is the free memory and total memory of different input data size: