The application discloses a single-precision hardware implementation double-precision
simulation method based on floating-point
decomposition and reconstruction, including a 32-bit single-precision
server; firstly, a prediction model is acquired to
train floating-point 64-bit double-precision scalar or
tensor original data, and the implementation double-precision
simulation method comprises the following steps: step S1, data preprocessing; step S2,
computation graph reconstruction; two floating-point 32-bit single-precision data are rewritten into a double-channel computation form by using a traditional computation flow; step S3, dynamic precision
recovery; step S4, adaptive quantization control; an
error feedback mechanism is introduced, when the error exceeds a threshold value, a dynamic
decomposition result of computation is triggered, and the
decomposition result is iterated to two floating-point 32-bit single-precision data, the application meets the high-precision computation demand of the single-precision
server; the application is completely based on a single-precision
instruction set and does not need special hardware support, and is suitable for an NPU cluster; compared with original double-precision storage, the memory occupation is reduced by 25%.