###
计算机系统应用英文版:2022,31(7):113-119
本文二维码信息
码上扫一扫!
基于申威1621数学库中的非精确结果异常处理
(中原工学院 前沿信息技术研究院, 郑州 450007)
Inexact Exception Handling in Shenwei 1621 Math Library
(Frontier Information Technology Research Institute, Zhongyuan University of Technology, Zhengzhou 450007, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1100次   下载 2510
Received:October 12, 2021    Revised:November 08, 2021
中文摘要: 由于国产申威基础数学库其功能、接口需要与单机编译器glibc libm库保持一致, 将基础数学库集成到glibc 中进行功能测试时, 检测出有部分函数的INE异常需要消除. 针对这种情况, 首先研究了glibc 数学库的异常检测机制; 然后针对基础数学库中数值函数的INE异常进行分析和优化, 提出一种测试数据集分段处理的方法, 最后消除了这种INE异常. 测试表明, 测试数据集分段处理的方法能够有效解决数值函数的INE异常, 相对于之前的异常处理方法, 使用本方法后平均性能加速比达到148%.
Abstract: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%.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
张天罡,王磊.基于申威1621数学库中的非精确结果异常处理.计算机系统应用,2022,31(7):113-119
ZHANG Tian-Gang,WANG Lei.Inexact Exception Handling in Shenwei 1621 Math Library.COMPUTER SYSTEMS APPLICATIONS,2022,31(7):113-119