Since FFTLIB is a collection of individual kernels, any combination of the kernels that comprise FFTLIB may be integrated into a system individually. Integration, for single or multiple kernels, requires four simple steps:
- Compile FFTLIB for k2hx (optional)
- Add API calls within system code
- Compile system code
- Link FFTLIB
The sections that follow provide details regarding the above four steps.
Compile FFTLIB for k2hx (optional)
On installation, the FFTLIB libraries are built and ready to link. Therefore, this step is only required when the original kernel source code has been refined or contributions have been added. See FFTLIB Build Process for details regarding re-building FFTLIB . |
Add FFTLIB API Calls
Add calls to FFTLIB kernels within the system source code as necessary. Any system source file that contains calls to an FFTLIB kernel will require that the FFTLIB header file fftlib.h is included. |
System Compilation
To re-compile the system code, the path to the packages directory will need to be added to the compiler's include path search list. This path will depend on the FFTLIB root installation directory. This allows the main FFTLIB header file to be moved from within the installation directory and still recognize the individual kernel headers. |
Linking FFTLIB
The path to the FFTLIB libraries must be provided to the linker via:
-l <FFTLIB_INSTALL_DIR>/packages/ti/fftlib/lib/fftlib.lib |