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

计算机工程 ›› 2012, Vol. 38 ›› Issue (7): 266-268,272. doi: 10.3969/j.issn.1000-3428.2012.07.087

• 开发研究与设计技术 • 上一篇    下一篇

基于多面体表示的向量化收益评估方法

张媛媛,赵荣彩,韩 林   

  1. (解放军信息工程大学计算机科学与技术系,郑州 450002)
  • 收稿日期:2011-07-26 出版日期:2012-04-05 发布日期:2012-04-05
  • 作者简介:张媛媛(1985-),女,硕士研究生,主研方向:高性能计算,并行编译;赵荣彩,教授;韩 林,讲师、博士
  • 基金资助:
    “核高基”重大专项“国产CPU编译器及其软件工具链”(2009ZX01036-001-001-2)

Vectorization Benefit Evaluation Method Based on Polyhedron Representation

ZHANG Yuan-yuan, ZHAO Rong-cai, HAN Lin   

  1. (Department of Computer Science and Technology, PLA Information Engineering College, Zhengzhou 450002, China)
  • Received:2011-07-26 Online:2012-04-05 Published:2012-04-05

摘要: 循环变换可提高程序性能,但对其向量化后可能会导致代码性能损失,并不一定会得到预期性能提升。针对该问题,结合目标体系结构特征,在Open64中实现一个基于多面体表示指导循环变换的向量化收益评估模型。该模型可以有效分析各种循环变换方案的代价,选择向量化收益最大的方案组合作为最终的向量化方案。对SPEC测试集的swim等5个程序进行测试,结果表明,收益评估结果与实测向量化加速比相近,可避免盲目优化。

关键词: 向量化, 收益评估, 循环变换, 多面体, 代价模型

Abstract: Loop transformations can bring program speedups, but after vectorization, program performance probably cannot benefit as expected. In order to solve the problem which is not done sufficiently by researchers, combining with the features of the targeted architecture, this paper implements a benefit evaluation framework in Open64 based on polyhedral representation. The benefit evaluation model can efficiently analyze cost of various loop transform scheme so that the best vectorization can be chosen as the ultimate vectorization selection. SPEC test set is done including swim and other four programs. Results show that the polyhedral cost model can accurately predict program speedups compared with real time tests and thus avoid blind optimization.

Key words: vectorization, benefit evaluation, loop transformation, polyhedron, cost model

中图分类号: