基于申威1621数学库中的非精确结果异常处理  

Inexact Exception Handling in Shenwei 1621 Math Library

在线阅读下载全文

作  者:张天罡 王磊[1] ZHANG Tian-Gang;WANG Lei(Frontier Information Technology Research Institute,Zhongyuan University of Technology,Zhengzhou 450007,China)

机构地区:[1]中原工学院前沿信息技术研究院,郑州450007

出  处:《计算机系统应用》2022年第7期113-119,共7页Computer Systems & Applications

摘  要:由于国产申威基础数学库其功能、接口需要与单机编译器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%.

关 键 词:异常检测 非精确结果异常 数据集分段处理 

分 类 号:TP332[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象