Proposed Consistent Exception Handling for the BLAS and LAPACK

07/19/2022
by   James Demmel, et al.
0

Numerical exceptions, which may be caused by overflow, operations like division by 0 or sqrt(-1), or convergence failures, are unavoidable in many cases, in particular when software is used on unforeseen and difficult inputs. As more aspects of society become automated, e.g., self-driving cars, health monitors, and cyber-physical systems more generally, it is becoming increasingly important to design software that is resilient to exceptions, and that responds to them in a consistent way. Consistency is needed to allow users to build higher-level software that is also resilient and consistent (and so on recursively). In this paper we explore the design space of consistent exception handling for the widely used BLAS and LAPACK linear algebra libraries, pointing out a variety of instances of inconsistent exception handling in the current versions, and propose a new design that balances consistency, complexity, ease of use, and performance. Some compromises are needed, because there are preexisting inconsistencies that are outside our control, including in or between existing vendor BLAS implementations, different programming languages, and even compilers for the same programming language. And user requests from our surveys are quite diverse. We also propose our design as a possible model for other numerical software, and welcome comments on our design choices.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/18/2019

Doping Tests for Cyber-Physical Systems

The software running in embedded or cyber-physical systems (CPS) is typi...
research
10/13/2020

Scenic: A Language for Scenario Specification and Data Generation

We propose a new probabilistic programming language for the design and a...
research
03/26/2020

Resilient Cyber-Physical Systems: Using NFV Orchestration

Cyber-Physical Systems (CPSs) are increasingly important in critical are...
research
03/26/2020

Modeling Cooperation for SDN and NFV-Based Resilient Cyber-Physical Systems

Cyber-Physical Systems (CPSs) are increasing their importance in very di...
research
10/04/2019

Trading off Complexity for Expressiveness in Programming Languages: Visions and Preliminary Experiences

When programming resource-scarce embedded smart devices, the designer of...
research
03/10/2021

A cautionary note on the Hanurav-Vijayan sampling algorithm

We consider the Hanurav-Vijayan sampling design, which is the default me...

Please sign up or login with your details

Forgot password? Click here to reset