作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

程序向量化中非规则访存问题研究

徐金龙  1,赵荣彩  1,刘鹏  1,李晓亮  2   

  1. (1.数学工程与先进计算国家重点实验室,郑州 450001; 2.解放军93010部队,沈阳 110000)
  • 收稿日期:2014-12-01 出版日期:2015-12-15 发布日期:2015-12-15
  • 作者简介:徐金龙(1984-),男,博士研究生,主研方向:体系结构,并行编译;赵荣彩,教授、博士生导师;刘鹏,博士研究生;李晓亮,助理工程师。
  • 基金资助:
    国家“863”计划基金资助项目(2009AA01220);“核高基”重大专项(2009zx10036-001-001)。

Research on Irregular Memory Access Problem for Programs Vectorization

XU Jinlong  1,ZHAO Rongcai  1,LIU Peng  1,LI Xiaoliang  2   

  1. (1.State Key Laboratory of Mathematical Engineering and Advanced Computing,Zhengzhou 450001,China; 2.PLA 93010 Army,Shenyang 110000,China)
  • Received:2014-12-01 Online:2015-12-15 Published:2015-12-15

摘要: 现有的程序向量化方法通常仅支持连续访存模式,而不支持非连续的内存访问。为实现更多程序的向量并行,提出一种向量化非规则访存处理方法。对访存特征进行检测分类,针对不同特征给出对应的向量化方案,同时设计收益分析方法,以保证向量化的有效性。实验结果表 明,该方法可有效提高向量化能力,实现复杂访存形式的程序向量化。

关键词: 非连续访存, 向量化, 访存特征, 数据重组, 数组访存

Abstract: Current programs vectorization methods commonly support only continuous memory access forms,they do not support non-contiguous memory access.In order to implement more programs vector parallelisms,an effective method handing irregular memory access for vectorization is proposed.In this method,memory accesses are classified,and a feature detection method is provided.Different vectorization solutions are proposed corresponding to different memory access features.Finally,cost-benefit analysis method is provided to guarantee the effectiveness of vectorization.Experimental results indicate that this method improves the vectorization ability significantly,and the programs with complex memory access can be vectorized.

Key words: non-contiguous memory access, vectorization, memory access feature, data reorganization, array memory access

中图分类号: