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

面向CPU-GPU源到源编译系统的渐近拟合优化方法
引用本文:魏洪昌,朱正东,董小社,宁 洁.面向CPU-GPU源到源编译系统的渐近拟合优化方法[J].计算机工程与应用,2016,52(21):30-35.
作者姓名:魏洪昌  朱正东  董小社  宁 洁
作者单位:西安交通大学 电子与信息工程学院,西安 710049
摘    要:针对CPU-GPU异构并行系统应用开发移植后优化不充分问题,提出了一种渐近拟合优化与源到源编译相结合的方法,该方法能够对插入了制导语句的C语言程序转换为CUDA语言后的程序进行多次剖分,根据源程序特性和硬件信息自动完成源到源编译与优化,并基于该方法实现了原型系统。通过在不同环境中的该原型系统在功能和性能方面进行的测试表明,由系统生成的CUDA目标程序与C源程序在功能上一致,性能上却有了大幅度提高,通过与CUDA基准测试程序相比表明,该目标程序在性能上明显优于其他源到源编译转换生成的程序。

关 键 词:源到源编译  统一计算架构(CUDA)  剖分  渐近拟合优化  

Asymptotic fitting optimization technology for source-to-source compile system on CPU-GPU architecture
WEI Hongchang,ZHU Zhengdong,DONG Xiaoshe,NING Jie.Asymptotic fitting optimization technology for source-to-source compile system on CPU-GPU architecture[J].Computer Engineering and Applications,2016,52(21):30-35.
Authors:WEI Hongchang  ZHU Zhengdong  DONG Xiaoshe  NING Jie
Affiliation:School of Electronic & Information Engineering, Xi’an Jiaotong University, Xi’an 710049, China
Abstract:Aiming at addressing the problem of the inadequate performance optimization after developing and porting of application on CPU-GPU heterogeneous parallel system, a new approach for CPU-GPU system is proposed, which combines asymptotic fitting optimization with source-to-source compiling technique. This approach can translate C code that inserts directives into CUDA code, and profile the generated code several times. Besides, the approach can realize the source-to-source compiling and optimization of the generated code automatically, and a prototype system based on the approach is realized in this paper as well. Functionality and performance evaluations of the prototype show that the generated CUDA code is functionally equivalent to the original C code while its improvement in performance is significant. When compared with CUDA benchmark, the performance of the generated CUDA code is obviously better than codes generated by other source-to-source compiling technique.
Keywords:source-to-source compile  Compute Unified Device Architecture(CUDA)  profiling  asymptotic fitting optimization  
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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