<< gpuExit sciGPGPU gpuFree >>

sciGPGPU >> sciGPGPU > gpuFFT

gpuFFT

Perform the fast fourier transform of matrix.

Call sequence

[CPU GPU dA]=gpuFFT(A,[option1 option2])

Parameters

A

Can be :

Pointer on the matrix stored in GPU memory.

Pointer on the matrix stored in CPU memory.

[option1 option2]

option1 :

0 : the computation result is store in CPU memory.

1 : the computation result is store in GPU memory.

2 : the computation result is store in GPU and GPU memory.

option2 :

0 : If input data are stored in CPU memory, the data load in GPU memory will be erased.

1 : Only the first argument will be preserved.

[CPU GPU dA]

CPU is the result of computation in CPU memory.

GPU is the result of computation in GPU memory.

dA is data of A locate in GPU memory.

Description

[CPU GPU dA]=gpuFFT(A,[option1 option2])

gpuFFT perform the fast fourier transform of matrix. Call this function with option [0 0] is equal to call it without option. The number of output parameters depends of options. This function use cuFFT to perform operations.

Exemples

A=rand(6,4)+%i*rand(6,4);

[GPU dA]=gpuFFT(A,[1 1]);
CPU = gpuGetData(GPU)
CPU1=gpuFFT(A)
CPU2=gpuFFT(dA)

gpuFree(dA);
gpuFree(GPU);

clear GPU;    
clear CPU1;
clear CPU2;
clear CPU;
clear dA;
clear A;

See Also

<< gpuExit sciGPGPU gpuFree >>