• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2024, Vol. 46 ›› Issue (11): 1924-1930.

• High Performance Computing • Previous Articles     Next Articles

A method for improving the robustness of mixed-precision optimization based on floating-point error analysis

YU Heng-biao,YI Xin,LI Sheng-guo,LI Fa,JIANG Hao,HUANG Chun   

  1. (College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2023-02-27 Revised:2023-05-30 Accepted:2024-11-25 Online:2024-11-25 Published:2024-11-27

Abstract: Floating-point arithmetic is a typical numerical solution model for high-performance computing. Mixed-precision optimization enhances performance and reduces energy consumption by decreas- ing the precision of floating-point variables in programs. However, existing automatic mixed-precision optimization techniques are limited by low robustness, meaning that the optimized programs fail to meet the result accuracy constraints for given inputs. To address this issue, a method for improving the robustness of mixed-precision optimization based on floating-point error analysis is proposed. Firstly, inputs that can trigger imprecise calculations in the program are identified through floating-point error analysis. Then, based on these error-triggering inputs, the precision configurations are evaluated to guide the search for highly robust mixed-precision configurations. Experimental results show that for typical floating-point applications, this method can improve the robustness of mixed-precision optimization by an average of 62%.

Key words: floating-point arithmetic, mixed precision, robustness, error analysis