Method and apparatus for measuring accuracies of fixed-point computations
AssigneeIntel Corporation
InventorPing T. Tang
Life of this patent
Estimating the term…
Abstract
Method and apparatus for measuring accuracies of fixed-point computations are described herein. In one embodiment, the exemplary process includes identifying an operation involving a plurality of input values, invoking an object associated with the identified operation, performing the operation via the invoked object, and automatically generating, as a part of the operation via the object, accuracy information associated with the operation for each of the plurality of input values. Other methods and apparatuses are also described.
Claims27
A computer implemented method, comprising:
- identifying an operation involving a plurality of input values;
- invoking an object associated with the identified operation, the object including a computational model as a member of the object to generate accuracy information for the operation, the computational model being defined by
- identifying a theoretical result of the operation based on an input value,
- defining an input independent error associated with the input value,
- defining an input dependent error associated with the input value, and
- obtaining an actual result of the operation based on the theoretical result, the input independent error, and input dependent error;
- performing the operation via the invoked object;
- and
- automatically generating, as a part of the operation via the object, the accuracy information associated with the operation for each of the plurality of input values.
A machine-readable medium having executable code to cause a machine to perform a method, the method comprising:
- identifying an operation involving a plurality of input values;
- invoking an object associated with the identified operation, the object including a computational model as a member of the object to generate accuracy information for the operation, the computational model being defined by
- identifying a theoretical result of the operation based on an input value,
- defining an input independent error associated with the input value,
- defining an input dependent error associated with the input value, and
- obtaining an actual result of the operation based on the theoretical result, the input independent error, and input dependent error;
- performing the operation via the invoked object;
- and
- automatically generating, as a part of the operation via the object, the accuracy information associated with the operation for each of the plurality of input values.
A data processing system, comprising:
- a processor;
- a memory coupled to the processor;
- and
- a process executed by the processor from the memory to cause the processor to identify an operation involving a plurality of input values,
- invoke an object associated with the identified operation, the object including a computational model as a member of the object to generate accuracy information for the operation, the computational model being defined by
- identifying a theoretical result of the operation based on an input value,
- defining an input independent error associated with the input value,
- defining an input dependent error associated with the input value, and
- obtaining an actual result of the operation based on the theoretical result, the input independent error, and input dependent error,
- perform the operation via the invoked object, and
- automatically generate, as a part of the operation via the object, the accuracy information associated with the operation for each of the plurality of input values.
A data processing system, comprising:
- a processor;
- a memory coupled to the processor;
- and
- a process executed by the processor from the memory to cause the processor to identify an operation involving a plurality of input values,
- invoke an object associated with the identified operation, the object including a computational model as a member of the object to generate accuracy information for the operation,
- perform the operation via the invoked object, and
- automatically generate, as a part of the operation via the object, the accuracy information associated with the operation for each of the plurality of input values,
- wherein the computational model comprises one of a probability density function and one or more upper-bound functions representing the accuracy of the operation.
Dependencies are inferred from the claim text.