High performance correctly rounded math libraries for 32-bit floating point representations
Jay P. Lim, Santosh Nagarakatte
摘要
This paper proposes a set of techniques to develop correctly rounded math libraries for 32-bit float and posit types. It enhances our RLIBM approach that frames the problem of generating correctly rounded libraries as a linear programming problem in the context of 16-bit types to scale to 32-bit types. Specifically, this paper proposes new algorithms to (1) generate polynomials that produce correctly rounded outputs for all inputs using counterexample guided polynomial generation, (2) generate efficient piecewise polynomials with bit-pattern based domain splitting, and (3) deduce the amount of freedom available to produce correct results when range reduction involves multiple elementary functions. The resultant math library for the 32-bit float type is faster than state-of-the-art math libraries while producing the correct output for all inputs. We have also developed a set of correctly rounded elementary functions for 32-bit posits.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Progressive polynomial approximations for fast correctly rounded math libraries 引用了 One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Progressive polynomial approximations for fast correctly rounded math libraries 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Parallel shadow execution to accelerate the debugging of numerical errors 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Parallel shadow execution to accelerate the debugging of numerical errors 引用了 Detecting floating-point errors via atomic conditions
- Parallel shadow execution to accelerate the debugging of numerical errors 引用了 Debugging and detecting numerical errors in computation with posits
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes 引用了 Detecting floating-point errors via atomic conditions
- An approach to generate correctly rounded math libraries for new floating point variants 引用了 Detecting floating-point errors via atomic conditions
- An approach to generate correctly rounded math libraries for new floating point variants 引用了 Debugging and detecting numerical errors in computation with posits
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation 引用了 Progressive polynomial approximations for fast correctly rounded math libraries
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation 引用了 One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 Progressive polynomial approximations for fast correctly rounded math libraries
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 Parallel shadow execution to accelerate the debugging of numerical errors
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 Detecting floating-point errors via atomic conditions
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 Debugging and detecting numerical errors in computation with posits
引用它的顶会 Paper8
- Parallel shadow execution to accelerate the debugging of numerical errorsSangeeta Chowdhary, Santosh NagarakatteFSE 2021 · 21 次引用
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modesJay P. Lim, Santosh NagarakattePOPL 2022 · 15 次引用
- Fast shadow execution for debugging numerical errors using error free transformationsSangeeta Chowdhary, Santosh NagarakatteOOPSLA 2022 · 13 次引用
- Progressive polynomial approximations for fast correctly rounded math librariesMridul Aanjaneya, Jay P. Lim, Santosh NagarakattePLDI 2022 · 9 次引用
- Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate RepresentationMridul Aanjaneya, Santosh NagarakattePLDI 2024 · 1 次引用
它引用的 Paper3
- Detecting floating-point errors via atomic conditionsDaming Zou, Muhan Zeng, Yingfei Xiong, Zhoulai Fu 等POPL 2020 · 45 次引用
- Debugging and detecting numerical errors in computation with positsSangeeta Chowdhary, Jay P. Lim, Santosh NagarakattePLDI 2020 · 26 次引用
- An approach to generate correctly rounded math libraries for new floating point variantsJay P. Lim, Mridul Aanjaneya, John L. Gustafson, Santosh NagarakattePOPL 2021 · 21 次引用
相关 Paper
- Correctly Rounded Math Libraries without Worrying about the Application's Rounding ModeSehyeok Park, Justin Kim, Santosh NagarakattePLDI 2025 · 1 次引用
- High-Performance Branch-Free Algorithms for Extended-Precision Floating-Point ArithmeticDavid Kai Zhang, Alex AikenSC 2025 · 3 次引用
- Implementation and Synthesis of Math Library FunctionsIan Briggs, Yash Lad, Pavel PanchekhaPOPL 2024 · 7 次引用
- FPVM: Towards a Floating Point Virtual MachinePeter A. Dinda, Nick Wanninger, Jiacheng Ma, Alex Bernat 等HPDC 2022 · 4 次引用
- Polynomial Invariant Generation for Floating-Point ProgramsXuran Cai, Liqian Chen, Hongfei FuCAV 2026
