期刊文献+

线程级猜测并行系统代码自动生成工具的设计与实现 被引量:1

Design and Implementation of Automatic Code Generator for TLS System
下载PDF
导出
摘要 虽然线程级猜测(Thread Level Speculation,TLS)执行机制可以简化多线程编程模型接口,并能获得较高的性能加速,但其并行程序的开发仍然比较困难。面向一个高效的软件TLS模型HEUSPEC,研究了代码自动生成工具C2H的设计与实现方法。具体包括3部分内容:首先,为HEUSPEC设计简单的标注语句,标注出可并行段的一些特征;其次,提出将标注语句和可并行段转换为猜测线程函数的算法;最后,设计生成HEUSPEC并行代码的算法。该方法已在开源编译器Clang上实现。面向Rodinia,OmpScr等基准程序的测试结果表明,C2H能够将带有简单标注语句的串行C代码转换为HEUSPEC并行代码,且其性能与手工编写的HEUSPEC并行代码的性能十分接近。 Although thread level speculation(TLS)mechanism can simplify the interface of multi-thread programming model and achieve high performance speedup,the development of its parallel program is still a tough task.Oriented to an effective software TLS model HEUSPEC,the design and implementation of automatic code generator C2 H,which has three components.First,simple directives are designed for HEUSPEC,which indicates some key characteristics of parallel regions.Second,an algorithm is proposed to convert directives and parallel regions to speculative functions.At last,an algorithm is designed to generate HEUSPEC parallel codes.This method has been implemented on an open source compiler——Clang.Experimental results oriented to typical benchmarks from Rodinia and OmpSrc indicate that C2 H can convert serial C codes with simple directives to HEUSPEC parallel codes,and the performance of automatic-generated parallel codes is very close to the codes developed by programmers manually.
出处 《计算机科学》 CSCD 北大核心 2017年第11期114-119,共6页 Computer Science
基金 国家自然科学基金项目(61272143 61472431)资助
关键词 线程级猜测 HEUSPEC 源到源编译器 标注语句 Clang Thread level speculation, HEUSPEC, Source-to-source compiler ,口rective , Clang
  • 相关文献

参考文献5

二级参考文献13

  • 1Tian C, Feng M, Nagarajan V, Gupta R. Copy or discard execution model for speculative parallelization on multi- cores. In Proc. the 4lst Annual IEEE/ACM Int. Syrup. Microarehitecture, Nov. 2008, pp.330-341. 被引量:1
  • 2Ding C, Shen X, Kelsey K, Tice C, Huang R, Zhang C. Software behavior oriented parallelization. In Proc. the 28th ACM SIGPLAN Conference on Programming Language Design and Implementation, Jun. 2007, pp.223-234. 被引量:1
  • 3Xu F, Shen L, Wang Z, Guo H, Su B, Chen W. HEUSPEC: A software speculation parallel model. In Proc. the 42nd In- ternational Conference on Parallel Processing, Oct. 2013, pp.621-630. 被引量:1
  • 4Liu S, Eisenbeis C, Gaudiot J L. Speculative execution on GPU: An exploratory study. In Proc. the 39th International Conference on Parallel Processing, Sept. 2010, pp.453-461. 被引量:1
  • 5Tian C, Lin C, Feng M, Gupta R. Enhanced speculative parallelization via incremental recovery. In Proc. the 16th ACM Symposium on Principles and Practice of Parallel Programming, Feb. 2011, pp.189-200. 被引量:1
  • 6Moore K, Bobba J, Moravan M J, Hill M, Wood D. LogTM: Log-based transactional memory. In Proc. the 12th Inter- national Symposium on High-Performance Computer Ar- chitecture, Feb. 2006, pp.254-265. 被引量:1
  • 7Tian C, Feng M, Gupta R. Speculative parallelization us- ing state separation and multiple value prediction. In Proc. the 9th International Symposium on Memory Management, June 2010, pp.63-72. 被引量:1
  • 8Che S, Boyer M, Meng Jet al. Rodinia: A benchmark suite for heterogeneous computing. In Proc. IEEE Inter- national Symposium on Workload Characterization, Oct. 2009, pp.44-54. 被引量:1
  • 9Henning J L. Spec CPU2000: Measuring CPU performance in the new millennium. Computer, 2000, 33(7): 28-35. 被引量:1
  • 10Spradling C D. Spec CPU2006 benchmark tools. ACM SIGARCH Comput. Archit. News, 2007, 35(1): 130-134. 被引量:1

共引文献2

同被引文献3

引证文献1

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部