Handling floating-point exceptions in numeric programs

Author:

Hauser John R.1

Affiliation:

1. Univ. of California, Berkeley

Abstract

There are a number of schemes for handling arithmetic exceptions that can be used to improve the speed (or alternatively the reliability) of numeric code. Overflow and underflow are the most troublesome exceptions, and depending on the context in which the exception can occur, they may be addressed either: (1) through a “brute force” reevaluation with extended range, (2) by reevaluating using a technique known as scaling , (3) by substituting an infinity or zero, or (4) in the case of underflow, with gradual underflow. In the first two of these cases, the offending computation is simply reevaluated using a safer but slower method. The latter two cases are cheaper, more automated schemes that ideally are built in as options within the computer system. Other arithmetic exceptions can be handled with similar methods. These and some other techniques are examined with an eye toward determining the support programming languages and computer systems ought to provide for floating-point exception handling. It is argued that the cheapest short-term solution would be to give full support to most of the required (as opposed to recommended) special features of the IEC/IEEE Standard for Binary Floating-Point Arithmetic. An essential part of this support would include standardized access from high-level languages to the exception flags defined by the standard. Some possibilities outside the IEEE Standard are also considered, and a few thought on possible better-structured support within programming languages are discussed.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference58 articles.

1. ANDERSON E. BAI Z. BISCHOF C. DEMMEL J. DONGARRA J. Du CROZ J. GREENBAUM A. HAMMARLING S. MCKENNEY A. OSTROUCHOV S. AND SORENSEN D. 1995. LAPACK Users' Guide Release 2.0. SIAM Philadelphia Pa. ANDERSON E. BAI Z. BISCHOF C. DEMMEL J. DONGARRA J. Du CROZ J. GREENBAUM A. HAMMARLING S. MCKENNEY A. OSTROUCHOV S. AND SORENSEN D. 1995. LAPACK Users' Guide Release 2.0. SIAM Philadelphia Pa.

2. ANSI. 1983. American National Standard Reference Manual for the Ada Programming Language. ANSI/MIL-STD 1815A-1983. American National Standards Institute New York. ANSI. 1983. American National Standard Reference Manual for the Ada Programming Language. ANSI/MIL-STD 1815A-1983. American National Standards Institute New York.

3. Americal National Standard for Information Technology--Programming Languages--Ada;ANSI.;ANSI/ISO/IEC,1995

4. APOSTOL T. M. 1974. Mathematical Analysis 2d ed. Addison-Wesley Reading Mass. APOSTOL T. M. 1974. Mathematical Analysis 2d ed. Addison-Wesley Reading Mass.

5. ASSADULLAH M. M. DEMMEL J. FIGUEROA S. GREENBAUM A. AND MCI~ENNEY A. 1992. On finding eigenvalues and singular values by bisection. LAPACK Working Note 19. ASSADULLAH M. M. DEMMEL J. FIGUEROA S. GREENBAUM A. AND MCI~ENNEY A. 1992. On finding eigenvalues and singular values by bisection. LAPACK Working Note 19.

Cited by 68 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. FPBOXer: Efficient Input-Generation for Targeting Floating-Point Exceptions in GPU Programs;Proceedings of the 33rd International Symposium on High-Performance Parallel and Distributed Computing;2024-06-03

2. LAProof: A Library of Formal Proofs of Accuracy and Correctness for Linear Algebra Programs;2023 IEEE 30th Symposium on Computer Arithmetic (ARITH);2023-09-04

3. Finding inputs that trigger floating-point exceptions in heterogeneous computing via Bayesian optimization;Parallel Computing;2023-09

4. Floating-Point Formats and Arithmetic for Highly Accurate Multi-Layer Perceptrons;2023 IEEE 23rd International Conference on Nanotechnology (NANO);2023-07-02

5. Fast floating-point filters for robust predicates;BIT Numerical Mathematics;2023-05-17

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3