synthesis of certified programs in fixed point arithmetic
play

Synthesis of certified programs in fixed-point arithmetic, and its - PowerPoint PPT Presentation

7me Rencontres Arithmtiques de lInformatique Mathmatique (RAIM2015) Rennes, 7-9 april 2015 Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks Amine Najahi Univ. Perpignan Via


  1. 7ème Rencontres Arithmétiques de l’Informatique Mathématique (RAIM2015) Rennes, 7-9 april 2015 Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks Amine Najahi Univ. Perpignan Via Domitia, DALI project-team Univ. Montpellier 2, LIRMM, UMR 5506 CNRS, LIRMM, UMR 5506 DALI M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 1/25

  2. Which arithmetic for computational tasks? Floating-point computations Fixed-point computations M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 2/25

  3. Which arithmetic for computational tasks? Floating-point computations Fixed-point computations � Easy and fast to implement � Tedious and time consuming to implement � Easily portable [IEEE754] • > 50 % of design time [Wil98] M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 2/25

  4. Which arithmetic for computational tasks? Floating-point computations Fixed-point computations � Easy and fast to implement � Tedious and time consuming to implement � Easily portable [IEEE754] • > 50 % of design time [Wil98] � Relies only on integer instructions � Requires dedicated hardware � Efficient � Slow if emulated in software M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 2/25

  5. Which arithmetic for computational tasks? Floating-point computations Fixed-point computations � Easy and fast to implement � Tedious and time consuming to implement � Easily portable [IEEE754] • > 50 % of design time [Wil98] � Relies only on integer instructions � Requires dedicated hardware � Efficient � Slow if emulated in software Embedded systems targets → have efficient integer instructions µ -controllers DSPs FPGAs Fixed-point arithmetic is well suited for embedded systems M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 2/25

  6. Which arithmetic for computational tasks? Floating-point computations Fixed-point computations � Easy and fast to implement � Tedious and time consuming to implement � Easily portable [IEEE754] • > 50 % of design time [Wil98] � Relies only on integer instructions � Requires dedicated hardware � Efficient � Slow if emulated in software Embedded systems targets → have efficient integer instructions µ -controllers DSPs FPGAs Fixed-point arithmetic is well suited for embedded systems But, how to make it easy, fast, and numerically safe to use by non-expert programmers? M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 2/25

  7. The DEFIS approach DEFIS (ANR, 2011-2015) Goal: develop techniques and tools to automate fixed-point programming M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 3/25

  8. The DEFIS approach Application description B1 B4 B3 B6 B2 DEFIS (ANR, 2011-2015) B5 Goal: develop techniques and tools to automate Floating-point Parameterized C code IP blocks fixed-point programming optimization Algorithm Infrastructure for the design of fixed- point systems S2S Specific System level level transfor- block optimization mation generation Combines conversion and IP block synthesis � Ménard et al. ( CAIRN, Univ. Rennes ) [MCCS02]: IWL Determination Dynamic Range • automatic float-to-fix conversion evaluation Accuracy constraint � Didier et al. ( PEQUAN, Univ. Paris ) [LHD14]: FWL Determination Architecture model • code generation for the linear filter IP block Validation & Accuracy Optimization evaluation Back-end Fixed-point C code Implementation High level tools Compiler Synthesis Architecture M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 3/25

  9. The DEFIS approach Application description B1 B4 B3 B6 B2 DEFIS (ANR, 2011-2015) B5 Goal: develop techniques and tools to automate Floating-point Parameterized C code IP blocks fixed-point programming optimization Algorithm Infrastructure for the design of fixed- point systems S2S Specific System level level transfor- block optimization mation generation Combines conversion and IP block synthesis � Ménard et al. ( CAIRN, Univ. Rennes ) [MCCS02]: IWL Determination Dynamic Range • automatic float-to-fix conversion evaluation Accuracy constraint � Didier et al. ( PEQUAN, Univ. Paris ) [LHD14]: FWL Determination Architecture model • code generation for the linear filter IP block Validation & Accuracy Optimization evaluation � Our approach ( DALI, Univ. Perpignan ): Back-end • certified fixed-point synthesis for: • Fine grained IP blocks: dot-products, Fixed-point C code Implementation polynomials, ... High level tools • High level IP blocks: matrix multiplication, Compiler Synthesis triangular matrix inversion, Cholesky decomposition Architecture M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 3/25

  10. The DEFIS approach Application description B1 B4 B3 B6 B2 DEFIS (ANR, 2011-2015) B5 Goal: develop techniques and tools to automate Floating-point Parameterized C code IP blocks fixed-point programming optimization Algorithm Infrastructure for the design of fixed- point systems S2S Specific System level level transfor- block optimization mation generation Combines conversion and IP block synthesis � Ménard et al. ( CAIRN, Univ. Rennes ) [MCCS02]: IWL Determination Dynamic Range • automatic float-to-fix conversion evaluation Accuracy constraint � Didier et al. ( PEQUAN, Univ. Paris ) [LHD14]: FWL Determination Architecture model • code generation for the linear filter IP block Validation & Accuracy Optimization evaluation � Our approach ( DALI, Univ. Perpignan ): Back-end • certified fixed-point synthesis for: • Fine grained IP blocks: dot-products, Fixed-point C code Implementation polynomials, ... High level tools • High level IP blocks: matrix multiplication, Compiler Synthesis triangular matrix inversion, Cholesky decomposition Long term objective: code synthesis for matrix inversion Architecture M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 3/25

  11. Our road-map How to generate certified fixed-point code for matrix inversion? M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 4/25

  12. Our road-map How to generate certified fixed-point code for matrix inversion? 1. Specify an arithmetic model � Contributions: • formalization of � and / Arithmetic model M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 4/25

  13. Our road-map How to generate certified fixed-point code for matrix inversion? 1. Specify an arithmetic model � Contributions: • formalization of � and / 2. Build a synthesis tool, CGPE, for fine grained IP C G P blocks: E � it adheres to the arithmetic model � Contributions: F Arithmetic l o • implementation of the arithmetic model i x o model e t d s - i s p e o h i n t t n s y M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 4/25

  14. Our road-map How to generate certified fixed-point code for matrix inversion? 1. Specify an arithmetic model � Contributions: • formalization of � and / F P L A 2. Build a synthesis tool, CGPE, for fine grained IP C G P blocks: E � it adheres to the arithmetic model � Contributions: F Arithmetic l o • implementation of the arithmetic model i x o model e t d s - i s p e o h 3. Build a second synthesis tool, FPLA, for algorithmic i n t t n s y A l o IP blocks: l g o t o r l i e t v h m e i c l � it generates code using CGPE � Contributions: • trade-off implementations for matrix multiplication • code synthesis for Cholesky decomposition and triangular matrix inversion M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 4/25

  15. Outline of the talk 1. An arithmetic model for fixed-point code synthesis 2. An implementation of the arithmetic model: the CGPE tool 3. Fixed-point code synthesis for linear algebra basic blocks M. A. Najahi (DALI UPVD/LIRMM, UM2, CNRS) Synthesis of certified programs in fixed-point arithmetic, and its application to linear algebra basic blocks 5/25

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend