Fast and Efficient Bit-Level Precision Tuning

03/09/2021
by   Assalé Adjé, et al.
0

In this article, we introduce a new technique for precision tuning. This problem consists of finding the least data types for numerical values such that the result of the computation satisfies some accuracy requirement. State of the art techniques for precision tuning use a try and fail approach. They change the data types of some variables of the program and evaluate the accuracy of the result. Depending on what is obtained, they change more or less data types and repeat the process. Our technique is radically different. Based on semantic equations, we generate an Integer Linear Problem (ILP) from the program source code. Basically, this is done by reasoning on the most significant bit and the number of significant bits of the values which are integer quantities. The integer solution to this problem, computed in polynomial time by a (real) linear programming solver, gives the optimal data types at the bit level. A finer set of semantic equations is also proposed which does not reduce directly to an ILP problem. So we use policy iteration to find the solution. Both techniques have been implemented and we show that our results encompass the results of state of the art tools.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/31/2021

A Study of the Floating-Point Tuning Behaviour on the N-body Problem

In this article, we apply a new methodology for precision tuning to the ...
research
03/14/2022

Constrained Precision Tuning

Precision tuning or customized precision number representations is emerg...
research
06/05/2023

Efficient Algorithms for Modeling SBoxes Using MILP

Mixed Integer Linear Programming (MILP) is a well-known approach for the...
research
08/09/2021

Linear equations for unordered data vectors in [D]^k→Z^d

Following a recently considered generalisation of linear equations to un...
research
10/06/2022

Towards the Multiple Constant Multiplication at Minimal Hardware Cost

Multiple Constant Multiplication (MCM) over integers is a frequent opera...
research
04/08/2021

RLIBM-32: High Performance Correctly Rounded Math Libraries for 32-bit Floating Point Representations

This paper proposes a set of techniques to develop correctly rounded mat...
research
01/30/2019

Generic Connectivity-Based CGRA Mapping via Integer Linear Programming

Coarse-grained reconfigurable architectures (CGRAs) are programmable log...

Please sign up or login with your details

Forgot password? Click here to reset