The application provides an error upper bound device, a determination method, a medium, a terminal and a program product suitable for dynamic precision
floating point multiply-accumulate operation, comprising: a feature acquisition module for acquiring a truncation compensation factor of each
operand and an accumulator tolerance factor; a local threshold allocation module for allocating a local error threshold for the current multiply-accumulate operation according to a preset global
error tolerance, a remaining term number, a remaining budget, an
energy consumption mode and the accumulator tolerance factor; a bit budget formula calculation module for calculating the actual precision supply and precision demand of each path respectively; a determination and feedback module for determining according to the actual precision supply and precision demand calculated by each path; if each path passes, a precision pass
signal is fed back; otherwise, a precision
upgrade mechanism is triggered. The application can give a deterministic error upper bound for the truncation error of each multiply-accumulate operation, and ensure that the global precision target is met.