Mechanical derivation of fused multiply-add algorithms for linear transforms

被引:5
作者
Voronenko, Yevgen [1 ]
Pueschel, Markus [1 ]
机构
[1] Carnegie Mellon Univ, Dept Elect & Comp Engn, Pittsburgh, PA 15213 USA
基金
美国国家科学基金会;
关键词
automatic program generation; discrete cosine transform (DCT); discrete Fourier transform (DFT); fast algorithm; implementation; multiply-and-accumulate (MAC); instruction; multiply and accumulate (MAC);
D O I
10.1109/TSP.2007.896116
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Several computer architectures offer fused multiply-add (FMA), also called multiply-and-accumulate (MAC) instructions, that are as fast as a single addition or multiplication. For the efficient implementation of linear transforms, such as the discrete Fourier transform or discrete cosine transforms, this poses a challenge to algorithm developers as standard transform algorithms have to be manipulated into FMA algorithms that make optimal use of FMA instructions. We present a general method to convert any transform algorithm into an FMA algorithm. The method works with both algorithms given as directed acyclic graphs (DAGs) and algorithms given as structured matrix factorizations. We prove bounds on the efficiency of the method. In particular, we show that it removes all single multiplications except at most as many as the transform has outputs. We implemented the DAG-based version of the method and show that we can generate many of the best-known hand-derived FMA, algorithms from the literature as well as a few novel FMA algorithms.
引用
收藏
页码:4458 / 4473
页数:16
相关论文
共 25 条
  • [1] BRUEKERS FAML, 1992, IEEE J SEL AREA COMM, V10, P130
  • [2] BURGISSER P, 1997, ALGEBRAIC COMPLEXICI
  • [3] HADAMARD TRANSFORMS ON MULTIPLY ADD ARCHITECTURES
    COPPERSMITH, D
    FEIG, E
    LINZER, E
    [J]. IEEE TRANSACTIONS ON SIGNAL PROCESSING, 1994, 42 (04) : 969 - 970
  • [4] Dershowitz Nachum, 2001, HDB AUTOMATED REASON, VI, P535, DOI [10.1016/b978-044450813-3/50011-4, DOI 10.1016/B978-044450813-3/50011-4]
  • [5] *FFTW, 2006, FFTW 3 1 2
  • [6] FRANCHETTI F, 2006, P SUP
  • [7] FRANCHETTI F, 2002, P INT PAR DISTR PROC, P20
  • [8] FRANCHETTI F, 2005, P PROGR LANG DES IMP, P315
  • [9] Frigo M, 1998, INT CONF ACOUST SPEE, P1381, DOI 10.1109/ICASSP.1998.681704
  • [10] Frigo M., 1999, P 1999 ACM SIGPLAN C, P169, DOI [DOI 10.1145/301631.301661, 10.1145/301618.301661, DOI 10.1145/301618.301661]