基于申威1621数学库中的非精确结果异常处理
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


Inexact Exception Handling in Shenwei 1621 Math Library
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

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

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-10-12
  • 最后修改日期:2021-11-08
  • 录用日期:
  • 在线发布日期: 2022-05-31
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号