OpenBLAS:龙芯3A CPU 的高性能BLAS 库
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金(61133005);国家高技术研究发展项目(863)(2009AA01A129, 2009AA01A134);国家重大专项核高基项目(2009ZX01036-001-002)


OpenBLAS: A High Performance BLAS Library on Loongson 3A CPU
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    BLAS 是科学计算中最基础的数学库之一,各CPU 厂商都推出了针对各自CPU 的优化BLAS 库.龙芯CPU 是中国科学院计算技术研究所自主研制的通用CPU,目前已推出了龙芯3 号系列.介绍了基于GotoBLAS2-1.13 BSD 版的开源项目OpenBLAS,针对龙芯3A CPU 的优化工作.在BLAS 3 级函数的单线程优化上,运用了分块,手工核心汇编,使用龙芯3A 扩展指令、汇编指令重排等技术.BLAS 3 级函数平均性能高于GotoBLAS 和ATLAS75%和17%.其中,双精度函数高于GotoBLAS 和ATLAS 103%和36%.在BLAS 3 级函数并行化方面,采用数据缓冲区交错布局等技术,减少多线程对共享L2 Cache 的争抢.OpenBLAS BLAS 3 级函数的4 线程并行加速比达到3.47.4线程BLAS 3 级函数平均性能高于GotoBLAS 和ATLAS 69%和34%,其中,双精度函数高于GotoBLAS 和ATLAS89%和55%.

    Abstract:

    BLAS is a fundamental math library in scientific computing. Thus, each CPU vendor releases optimized BLAS library for its own CPU. Loongson CPU series are developed by the Institute of Computing Technology, Chinese Academy of Sciences. In 2010, it released Loongson 3 CPU series. This paper introduces the open source BLAS library OpenBLAS, which is forked on GotoBLAS 2-1.13 BSD version. BLAS Level 3 functions of OpenBLAS is optimized on Loongson 3A quad cores CPU. In sequential optimizations, blocking, hand coding assembly kernel, Loongson 3A special instructions and reordering instructions are utilized. The performance of BLAS Level 3 subroutines exceeded GotoBLAS and ATLAS by about 75% and 17%. Meanwhile, it exceeded GotoBLAS and ATLAS by about 103% and 36% in double precision functions. In parallel multi-threads optimization, this study used interleaved data buffer layout to avoid shared L2 Cache conflictions among multi-threads. OpenBLAS achieved 3.47 speedups on quad cores. In 4 threads, the performance of OpenBLAS BLAS Level3 functions exceeded GotoBLAS and ATLAS by about 69% and 34%, 89% and 55% in double precision functions.

    参考文献
    相似文献
    引证文献
引用本文

张先轶,王茜,张云泉. OpenBLAS:龙芯3A CPU 的高性能BLAS 库.软件学报,2011,22(zk2):208-216

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2011-07-15
  • 最后修改日期:2011-12-02
  • 录用日期:
  • 在线发布日期: 2012-03-30
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号