FFTW

  • FFTW is a compiler that takes in FFT problem definition and outputs C code.
  • FFTW is #adaptive, in the sense that it adapts to the hardware architecture (say reigster size, SIMD).
  • The FFTW Philosiphy: Divide-and-Conquer, that every thing can be represented by #codelet (variants of Cooley-Tukey FFT).
  • FFTW finds the best #plan via dynamic programming, the cost function is # add + # mul.
  • The main strategy is Locality or #cache-oblivious.

Paper: A Fast Fourier Transform Compiler

  • The author mentioned correctness and performance as criteria. (Recall approximate computing?)
  • An Execution #DAG of #codelet is built (in the first edition), which is subsequently simplified by simplifier, using transpose or arithmetic technique. (Is DAG an AST?)
  • genfft schedules instructions for given simplified #DAG.
#adaptive #codelet #plan #cache-oblivious #DAG