The archive contains all the libraries and include files needed to build applications using GPUFFTW. The only assumption made about the target system is the presence of a working OpenGL runtime with the correct drivers for the video card and the presence of GLUT. In case you are not sure about the video drivers on your system and own an NVIDIA card, go here to install the latest drivers for your system. The following is a description of what each folder contains:
Setting up the library for use in your application is simple.
Since the API of GPUFFTW is very simple and similar to Intel Math Kernel Library, instead of a function-by-function description of the class, we will present details to illustrate the usage.
The function cgpufft1d is designed for complex 1D FFTs. The function requires the real data in one array, the corresponding imaginary data array, and a sign. The sign is used to determine forward or backward FFT.
The function scgpufft1d is designed for real 1D FFTs. It accepts an input real array, and a sign. The sign is used to determine forward or backward FFT. This code implicitly converts the real FFT problem into complex FFTs of half-size and the code is adapted from numerical recipes in C.