结合模型和迭代编译优化矩阵相乘程序  被引量:1

Using Model and Iterative Compilation to Optimize Matrix Multiplication Applications

在线阅读下载全文

作  者:陆平静[1] 王正华[1] 车永刚[1] 

机构地区:[1]国防科技大学计算机学院,湖南长沙410073

出  处:《计算机工程与科学》2009年第A01期206-209,共4页Computer Engineering & Science

基  金:国家自然科学基金资助项目(60603055);国家863计划资助项目(2007AA01Z116);国家973计划资助项目(G2009CB723803)

摘  要:高性能计算应用程序获得的持续性能与机器峰值性能的差距日益扩大,很大程度上制约着高性能计算的发展。程序变换通过对程序进行适应机器体系结构特征的优化变换,提高程序实际执行性能,是解决该问题的有效途径之一。很多高级程序变换均具有数值参数,为了获得最优性能,需要仔细选择参数的值。传统的编译器使用简单的模型选择这些参数,难以适应日趋复杂的硬件平台和应用程序。迭代编译通过生成不同的程序版本并在实际硬件评估上运行程序,来评估关键优化参数的值并决定能够产生最优性能的值,显著优于静态方法,但巨大的优化开销限制了其应用范围。本文针对矩阵相乘程序提出一种结合性能模型和迭代编译的优化方法,利用基于对机器体系结构和程序的经验知识构造性能模型约束优化空间,并使用遗传算法加速在优化空间中寻找优秀解的过程。实验结果表明,该方法可以较低的开销获得更优的性能优化效果。The performance gap for high performance applications has been widening over time. High level program transformations are critical to improve the applications' performance, many of which concern the determination of optimal values for transformation parameters. Traditional compilers select these parameters based on static analytical models. However, complex computer architectures and code behaviors greatly limit the strength of optimizing compilers. Iterative compilation approach determines these parameter values by executing the program with different parameter values and selects the one with the shortest runtime, outperforming static approaches significantly. But it's quite time consuming because of the huge optimization space. Aiming at matrix multiplication program, this paper presents a combinative method to solve this problem by investigating a constraint model on optimization parameters to limit the optimization space, and then applying genetic algorithms to search the optimal parameters. Experimental results indicate our approach can produce parameter values with better performance and lower cost.

关 键 词:程序变换 迭代编译 遗传算法 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象