摘要
由于国产申威基础数学库其功能、接口需要与单机编译器glibc libm库保持一致,将基础数学库集成到glibc中进行功能测试时,检测出有部分函数的INE异常需要消除.针对这种情况,首先研究了glibc数学库的异常检测机制;然后针对基础数学库中数值函数的INE异常进行分析和优化,提出一种测试数据集分段处理的方法,最后消除了这种INE异常.测试表明,测试数据集分段处理的方法能够有效解决数值函数的INE异常,相对于之前的异常处理方法,使用本方法后平均性能加速比达到148%.
Since the functions and interfaces of the domestic Shenwei basic math library need to be consistent with the libm library of the stand-alone compiler glibc,the basic math library is integrated into glibc for functional tests.Nevertheless,it is detected that some functions have inexact exception(INE)that needs to be eliminated.In response,this study investigates the exception detection mechanism of the glibc math library,analyzes and optimizes the INE of the numerical functions in the basic math library,and proposes a segmentation processing method for test data sets.In this way,such INE is eliminated.Tests show that the segmentation processing method for test data sets can effectively solve the INE of the numerical functions.Compared with the previous exception processing method,the proposed method improves the average performance speedup to 148%.
作者
张天罡
王磊
ZHANG Tian-Gang;WANG Lei(Frontier Information Technology Research Institute,Zhongyuan University of Technology,Zhengzhou 450007,China)
出处
《计算机系统应用》
2022年第7期113-119,共7页
Computer Systems & Applications
关键词
异常检测
非精确结果异常
数据集分段处理
exception detection
inexact exception(INE)
data set segmentation processing