首页 | 官方网站   微博 | 高级检索  
     

基于数据对齐属性指导的GCC自动向量化优化
引用本文:李春江,黄娟娟,徐颖,董钰山.基于数据对齐属性指导的GCC自动向量化优化[J].计算机工程与科学,2014,36(6):1011-1017.
作者姓名:李春江  黄娟娟  徐颖  董钰山
基金项目:基金项目:国家自然科学基金资助项目(61170046);国家863计划资助项目(2012AA010903)
摘    要:主流通用处理器都已经实现了多核并行以及处理器核内的SIMD并行。虽然GCC编译器实现了面向SIMD并行的自动向量化,但是编译器针对OpenMP并行程序的自动向量化效果仍很不理想。针对多线程并行的OpenMP程序,基于GCC的OpenMP编译实现,扩展了数据对齐属性指导语句,使编译器在自动向量化时能够进行更准确的数据对齐与否的判断,优化了GCC编译器的自动向量化。

关 键 词:数据对齐属性  编译指导  自动向量化  GCC  
收稿时间:2013-08-03
修稿时间:2014-06-25

Optimizing the auto-vectorization in GCC based on data-alignment directives
LI Chun jiang,HUANG Juan juan,XU Ying,DONG Yu shan.Optimizing the auto-vectorization in GCC based on data-alignment directives[J].Computer Engineering & Science,2014,36(6):1011-1017.
Authors:LI Chun jiang  HUANG Juan juan  XU Ying  DONG Yu shan
Affiliation:(College of Computer,National University of Defense Technology,Changsha 410073,China)
Abstract:The general purpose processors support multi core parallelism on a chip and SIMD parallelism in each core. Although GCC complier makes use of the auto-vectorization for SIMD parallelism, the effects of auto vectorization for OpenMP program is far from the expectation. Based on the implementation of the OpenMP compilation in GCC, we extend complier directives with data alignment attribute directive for OpenMP program. Our work enables GCC to make a more accurate estimation on the alignment of data access, and optimizes the auto-vectorization in GCC.
Keywords:data alignment attribute  compiler directives  auto-vectorization  GCC  
本文献已被 CNKI 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号