GPUFFTDemo1

>Psychtoolbox>PsychDemos>GPGPUDemos

GPUFFTDemo1([fwidth=11]) - Demonstrate use of GPGPU computing for 2D-FFT.

This demo makes use of the FOSS GPUmat toolbox to perform a GPU
accelerated 2D FFT + filtering in frequency space + 2D inverse FFT on our
favourite bunnies. GPUmat allows to use NVidia’s CUDA gpu computing
framework on supported NVidia gpu’s (GeForce.

It shows how a Psychtoolbox floating point texture (with our bunnies
inside) can be efficiently passed to GPUmat as a matrix of GPUsingle data
type, which is stored and processed on the GPU. Then it uses GPUmat’s fft
routines for forward/inverse fft’s and matrix manipulation. Then it
returns the final image to Psychtoolbox as a new floating point texture
for display. The same steps are carried out with Matlab/Octave’s regular
fft routines on the cpu for reference.

Requires the freely downloadable NVidia CUDA-5.0 SDK/Runtime and the free
and open-source GPUmat toolbox as well as a compute capable NVidia
graphics card.

Parameters:

‘fwidth’ = Width of low-pass filter kernel in frequency space units.

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychDemos/GPGPUDemos/GPUFFTDemo1.m