首页 | 本学科首页   官方微博 | 高级检索  
     

针对程序代码语句级能耗优化方法
引用本文:黄天明,钱德沛,栾钟治. 针对程序代码语句级能耗优化方法[J]. 数据与计算发展前沿, 2018, 9(1): 49-58. DOI: 10.11871/j.issn.1674-9480.2018.01.007
作者姓名:黄天明  钱德沛  栾钟治
作者单位:北京航空航天大学,北京 100191
摘    要:本文主要通过插桩技术对程序的指令进行分析,寻找到程序代码中低效冗余的数据存取语句,对这些语句进行改进,在运行结果不变的前提下,使得在运行程序过程中对于计算机相关部件的使用更加合理和高效,降低机器运行该程序的能耗,起到对程序代码能耗优化的作用。本研究通过Intel Pin[1]工具对于程序代码指令的分析发现,常见程序中存在一种低效冗余的数据存取代码,该代码对于数据多次写入后才读。对这种代码改进前后使用根据计算机部件级硬件性能计数器相关读数建立的模型[2]对于程序能耗进行测量,结果显示对程序能耗降低起到了明显作用,可以作为程序代码能耗优化的一种有效方法,特别是对于运行时间长能耗高的科学计算程序。

关 键 词:程序代码  能耗优化  数据存取  低效冗余  Intel Pin  科学计算  

Energy Consumption Optimization Method for Program Code
Huang Tianming,Qian Depei,Luan Zhongzhi. Energy Consumption Optimization Method for Program Code[J]. Frontiers of Data & Computing, 2018, 9(1): 49-58. DOI: 10.11871/j.issn.1674-9480.2018.01.007
Authors:Huang Tianming  Qian Depei  Luan Zhongzhi
Affiliation:Beihang Unirersity, Beijing 100191, China
Abstract:This paper mainly analyzes the instructions of the program through the instrumentation technology, finds the inefficient redundant data access statements in the program code, and improves these statements. Under the premise of the running result, when the program is executed, the use of computer-related components is more reasonable and efficient, reducing the energy consumption of the machine running the program, and optimizing the energy consumption of the program code. In this paper, we used the Intel Pin [1] tool to analyze the instructions of programs, we found that there is an inefficient redundant data access code in common programs, the data is read after it was written multiple times. For the improvement of this code, the model based on the computer component level hardware performance counter related readings [2] is used to measure the program energy consumption. The result shows that the programs energy consumption is reduced, which can be used as a program code energy optimization. An effective method, especially for scientific computing programs with long running times and high energy consumption.
Keywords:program code  energy optimization  data access  inefficient redundancy  Intel Pin  scientific computing  
点击此处可从《数据与计算发展前沿》浏览原始摘要信息
点击此处可从《数据与计算发展前沿》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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