Custom Floating-Point Computations for the Optimization of ODE Solvers on FPGA

Authors Serena Curzel , Marco Gribaudo



PDF
Thumbnail PDF

File

OASIcs.PARMA-DITAM.2025.2.pdf
  • Filesize: 0.98 MB
  • 13 pages

Document Identifiers

Author Details

Serena Curzel
  • Politecnico di Milano, Italy
Marco Gribaudo
  • Politecnico di Milano, Italy

Cite As Get BibTex

Serena Curzel and Marco Gribaudo. Custom Floating-Point Computations for the Optimization of ODE Solvers on FPGA. In 16th Workshop on Parallel Programming and Run-Time Management Techniques for Many-Core Architectures and 14th Workshop on Design Tools and Architectures for Multicore Embedded Computing Platforms (PARMA-DITAM 2025). Open Access Series in Informatics (OASIcs), Volume 127, pp. 2:1-2:13, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2025) https://doi.org/10.4230/OASIcs.PARMA-DITAM.2025.2

Abstract

Mean Field Analysis and Markovian Agents are powerful techniques for modeling complex systems of distributed interacting objects, for which efficient analytical and numerical solution algorithms can be implemented through linear systems of ordinary differential equations (ODEs). Solving such ODE systems on Field Programmable Gate Arrays (FPGAs) is a promising alternative to traditional CPU- and GPU-based approaches, especially in terms of energy consumption; however, the floating-point computations required are generally thought to be slow and inefficient when implemented on FPGA. In this paper, we demonstrate the use of High-Level Synthesis with automated customization of low-precision floating-point calculations, obtaining hardware accelerators for ODE solvers with improved quality of results and minimal output error. The proposed methodology does not require any manual rewriting of the solver code, but it remains prohibitively slow to evaluate any possible floating-point configuration through logic synthesis; in the future, we will thus implement automated design space exploration methods able to suggest promising configurations under user-defined accuracy and performance constraints.

Subject Classification

ACM Subject Classification
  • Hardware → Methodologies for EDA
  • Hardware → High-level and register-transfer level synthesis
  • Computer systems organization → Architectures
  • Hardware → Very large scale integration design
  • Hardware → Reconfigurable logic and FPGAs
Keywords
  • Differential Equations
  • High-Level Synthesis
  • FPGA
  • floating-point

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. Hassan Al-Yassin, Mohammed A. Fadhel, Omran Al-Shamma, and Laith Alzubaidi. Solving Lorenz ODE System Based Hardware Booster. In Intelligent Systems Design and Applications (ISDA), pages 245-254, 2019. URL: https://doi.org/10.1007/978-3-030-49342-4_24.
  2. AMD/Xilinx. Arbitrary Precision Data Types Library, 2024. URL: https://docs.amd.com/r/en-US/ug1399-vitis-hls/Arbitrary-Precision-AP-Data-Types.
  3. Silas Bartel and Matthias Korch. Generation of logic designs for efficiently solving ordinary differential equations on field programmable gate arrays. Software: Practice and Experience, 53(1):27-52, 2023. URL: https://doi.org/10.1002/spe.3043.
  4. Soham Bhattacharya and Dwaipayan Chakraborty. Design-Space Exploration of the Runge-Kutta Hardware Accelerator for Solving Ordinary Differential Equation. In 2023 IEEE International Conference on Electrical, Automation and Computer Engineering (ICEACE), pages 260-264, 2023. URL: https://doi.org/10.1109/ICEACE60673.2023.10442673.
  5. Soham Bhattacharya and Dwaipayan Chakraborty. Implementation of a Hardware Accelerator with FPU-Based Euler and Modified Euler Solver For an Ordinary Differential Equation. In 2023 International Conference on Computational Science and Computational Intelligence (CSCI), pages 1106-1112, 2023. URL: https://doi.org/10.1109/CSCI62032.2023.00182.
  6. Andrea Bobbio, Marco Gribaudo, and Miklós Telek. Analysis of Large Scale Interacting Systems by Mean Field Method. In 2008 Fifth International Conference on Quantitative Evaluation of Systems, pages 215-224, 2008. URL: https://doi.org/10.1109/QEST.2008.47.
  7. Nicolas Bohm Agostini, Serena Curzel, Jeff Jun Zhang, Ankur Limaye, Cheng Tan, Vinay Amatya, Marco Minutoli, Vito Giovanni Castellana, Joseph Manzano, David Brooks, Gu-Yeon Wei, and Antonino Tumeo. Bridging Python to Silicon: The SODA Toolchain. IEEE Micro, 42(5):78-88, 2022. URL: https://doi.org/10.1109/MM.2022.3178580.
  8. Andrea Borghesi, Giuseppe Tagliavini, Michele Lombardi, Luca Benini, and Michela Milano. Combining learning and optimization for transprecision computing. In Proceedings of the 17th ACM International Conference on Computing Frontiers, pages 10-18, 2020. URL: https://doi.org/10.1145/3387902.3392615.
  9. Dario Bruneo, Marco Scarpa, Andrea Bobbio, Davide Cerotti, and Marco Gribaudo. Analytical modeling of swarm intelligence in wireless sensor networks through Markovian agents. In Proceedings of the Fourth International ICST Conference on Performance Evaluation Methodologies and Tools, 2009. URL: https://doi.org/10.4108/ICST.VALUETOOLS2009.7672.
  10. Lelio Campanile, Mauro Iacono, Fiammetta Marulli, Marco Gribaudo, Michele Mastrioianni, et al. A DSL-Based Modeling Approach For Energy Harvesting IoT/WSN. In 36th International ECMS Conference on Modelling and Simulation, pages 317-323, 2022. URL: https://doi.org/10.7148/2022-0317.
  11. Jason Cong, Jason Lau, Gai Liu, Stephen Neuendorffer, Peichen Pan, Kees Vissers, and Zhiru Zhang. FPGA HLS Today: Successes, Challenges, and Opportunities. ACM Transactions on Reconfigurable Technology and Systems, 15(4):1-42, 2022. URL: https://doi.org/10.1145/3530775.
  12. Francesca Cordero, Daniele Manini, and Marco Gribaudo. Modeling Biological Pathways: An Object-Oriented like Methodology Based on Mean Field Analysis. In 2009 Third International Conference on Advanced Engineering Computing and Applications in Sciences, pages 117-122, 2009. URL: https://doi.org/10.1109/ADVCOMP.2009.25.
  13. Ayad M. Dalloo, Amjad Jaleel Humaidi, Ammar K. Al Mhdawi, and Hamed Al-Raweshidy. Approximate Computing: Concepts, Architectures, Challenges, Applications, and Future Directions. IEEE Access, 12:146022-146088, 2024. URL: https://doi.org/10.1109/ACCESS.2024.3467375.
  14. F. de Dinechin and B. Pasca. Designing Custom Arithmetic Data Paths with FloPoCo. IEEE Design & Test of Computers, 28(4):18-27, 2011. URL: https://doi.org/10.1109/MDT.2011.44.
  15. Alireza Fasih, Tuan Do Trong, Jean Chamberlain Chedjou, and Kyandoghere Kyamakya. New computational modeling for solving higher order ODE based on FPGA. In 2009 2nd International Workshop on Nonlinear Dynamics and Synchronization, pages 49-53, 2009. URL: https://doi.org/10.1109/INDS.2009.5227969.
  16. Erwin Fehlberg. Low-order classical Runge-Kutta formulas with stepsize control and their application to some heat transfer problems, volume 315. National aeronautics and space administration, 1969. Google Scholar
  17. Fabrizio Ferrandi, Vito Giovanni Castellana, Serena Curzel, Pietro Fezzardi, Michele Fiorito, Marco Lattuada, et al. Bambu: an Open-Source Research Framework for the High-Level Synthesis of Complex Applications. In Proceedings of the 58th ACM/IEEE Design Automation Conference (DAC), pages 1327-1330, 2021. URL: https://doi.org/10.1109/DAC18074.2021.9586110.
  18. Fabrizio Ferrandi, Michele Fiorito, Claudio Barone, Giovanni Gozzi, and Serena Curzel. High-Level Synthesis Developments in the Context of European Space Technology Research. In 15th Workshop on Parallel Programming and Run-Time Management Techniques for Many-Core Architectures and 13th Workshop on Design Tools and Architectures for Multicore Embedded Computing Platforms (PARMA-DITAM 2024), volume 116, pages 1:1-1:12, 2024. URL: https://doi.org/10.4230/OASIcs.PARMA-DITAM.2024.1.
  19. Michele Fiorito, Serena Curzel, and Fabrizio Ferrandi. TrueFloat: A Templatized Arithmetic Library for HLS Floating-Point Operators. In Embedded Computer Systems: Architectures, Modeling, and Simulation: 23rd International Conference, SAMOS 2023, Samos, Greece, July 2–6, 2023, Proceedings, pages 486-493, 2023. URL: https://doi.org/10.1007/978-3-031-46077-7_35.
  20. Laurent Fousse, Guillaume Hanrot, Vincent Lefèvre, Patrick Pélissier, and Paul Zimmermann. MPFR: A Multiple-Precision Binary Floating-Point Library with Correct Rounding. ACM Trans. Math. Softw., 33(2), 2007. URL: https://doi.org/10.1145/1236463.1236468.
  21. Jonathan Garcia-Mallen, Shuohao Ping, Alex Miralles-Cordal, Ian Martin, Mukund Ramakrishnan, and Yipeng Huang. Towards an Accelerator for Differential and Algebraic Equations Useful to Scientists. IEEE Computer Architecture Letters, 22(2):185-188, 2023. URL: https://doi.org/10.1109/LCA.2023.3332318.
  22. Marco Gribaudo, Davide Cerotti, and Andrea Bobbio. Analysis of On-off policies in Sensor Networks Using Interacting Markovian Agents. In 2008 Sixth Annual IEEE International Conference on Pervasive Computing and Communications (PerCom), pages 300-305, 2008. URL: https://doi.org/10.1109/PERCOM.2008.100.
  23. Marco Gribaudo, Mauro Iacono, and Daniele Manini. COVID-19 Spatial Diffusion: A Markovian Agent-Based Model. Mathematics, 9(5), 2021. URL: https://doi.org/10.3390/math9050485.
  24. Nhut-Minh Ho, Elavarasi Manogaran, Weng-Fai Wong, and Asha Anoosheh. Efficient floating point precision tuning for approximate computing. In 2017 22nd Asia and South Pacific Design Automation Conference (ASP-DAC), pages 63-68, 2017. URL: https://doi.org/10.1109/ASPDAC.2017.7858297.
  25. Andrew Hollabough and Dwaipayan Chakraborty. An Open-Source Co-processor for Solving Lotka-Volterra Equations. In 2022 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1690-1694, 2022. URL: https://doi.org/10.1109/ISCAS48785.2022.9937835.
  26. Chen Huang, Bailey Miller, Frank Vahid, and Tony Givargis. Synthesis of networks of custom processing elements for real-time physical system emulation. ACM Trans. Des. Autom. Electron. Syst., 18(2), 2013. URL: https://doi.org/10.1145/2442087.2442092.
  27. Chen Huang, Frank Vahid, and Tony Givargis. A Custom FPGA Processor for Physical Model Ordinary Differential Equation Solving. IEEE Embedded Systems Letters, 3(4):113-116, 2011. URL: https://doi.org/10.1109/LES.2011.2170152.
  28. Chen Huang, Frank Vahid, and Tony Givargis. Automatic synthesis of physical system differential equation models to a custom network of general processing elements on FPGAs. ACM Trans. Embed. Comput. Syst., 13(2), 2013. URL: https://doi.org/10.1145/2514641.2514650.
  29. Thomas G. Kurtz. Solutions of Ordinary Differential Equations as Limits of Pure Jump Markov Processes. Journal of Applied Probability, 7(1):49-58, 1970. URL: http://www.jstor.org/stable/3212147.
  30. Siting Liu and Jie Han. Hardware ODE Solvers using Stochastic Circuits. In Proceedings of the 54th Annual Design Automation Conference (DAC), 2017. URL: https://doi.org/10.1145/3061639.3062258.
  31. Sparsh Mittal. A Survey of Techniques for Approximate Computing. ACM Comput. Surv., 48(4), 2016. URL: https://doi.org/10.1145/2893356.
  32. Christian Pilato, Subhadeep Banik, Jakub Beránek, Fabien Brocheton, Jeronimo Castrillon, Riccardo Cevasco, et al. A System Development Kit for Big Data Applications on FPGA-based Clusters: The EVEREST Approach. In 2024 Design, Automation & Test in Europe Conference & Exhibition (DATE), pages 1-6, 2024. URL: https://doi.org/10.23919/DATE58400.2024.10546518.
  33. Cindy Rubio-González, Cuong Nguyen, Hong Diep Nguyen, James Demmel, William Kahan, Koushik Sen, et al. Precimonious: Tuning assistant for floating-point precision. In SC '13: Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis, pages 1-12, 2013. URL: https://doi.org/10.1145/2503210.2503296.
  34. Siemens Digital Industries Software. HLS Libs, 2024. URL: https://hlslibs.org/.
  35. Ioannis Stamoulias, Matthias Möller, Rene Miedema, Christos Strydis, Christoforos Kachris, and Dimitrios Soudris. High-Performance Hardware Accelerators for Solving Ordinary Differential Equations. In Proceedings of the 8th International Symposium on Highly Efficient Accelerators and Reconfigurable Technologies (HEART), 2017. URL: https://doi.org/10.1145/3120895.3120919.
  36. T. Tambe, E. Y. Yang, Z. Wan, Y. Deng, V. Janapa Reddi, et al. Algorithm-Hardware Co-Design of Adaptive Floating-Point Encodings for Resilient Deep Learning Inference. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1-6, 2020. URL: https://doi.org/10.1109/DAC18072.2020.9218516.
  37. Xiaojun Wang and Miriam Leeser. VFloat: A Variable Precision Fixed- and Floating-Point Library for Reconfigurable Hardware. ACM Trans. Reconfigurable Technol. Syst., 3(3), 2010. URL: https://doi.org/10.1145/1839480.1839486.
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail