Providing Source Code Level Portability Between CPU and GPU with MapCG

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:yyp0000
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Graphics processing units (GPU) have taken an important role in the general purpose computing market in recent years.At present,the common approach to programming GPU units is to write GPU specific code with low level GPU APIs such as CUDA.Although this approach can achieve good performance,it creates serious portability issues as programmers are required to write a specific version of the code for each potential target architecture.This results in high development and maintenance costs.We believe it is desirable to have a programming model which provides source code portability between CPUs and GPUs,as well as different GPUs.This would allow programmers to write one version of the code,which can be compiled and executed on either CPUs or GPUs efficiently without modification.In this paper,we propose MapCG,a MapReduce framework to provide source code level portability between CPUs and GPUs.In contrast to other approaches such as OpenCL,our framework,based on MapReduce,provides a high level programming model and makes programming much easier.We describe the design of MapCG,including the MapReduce-style high-level programming framework and the runtime system on the CPU and GPU.A prototype of the MapCG runtime,supporting multi-core CPUs and NVIDIA GPUs,was implemented. Our experimental results show that this implementation can execute the same source code efficiently on multi-core CPU platforms and GPUs,achieving an average speedup of 1.6~2.5x over previous implementations of MapReduce on eight commonly used applications.
其他文献
To improve the efficiency of the attribute reduction,we present an attribute reduction algorithm based on background knowledge and information entropy by making
提高科技论文摘要的英译质量有利于作者准确传递信息,更好地实现参与国际学术交流与传播的目的。译好摘要需选词准确,本文从语境(context)和搭配(collocation)等方面阐述了科
In this paper, a heavy rainfall process occurring in the Huaihe River Basin during 9-10 July 2005 is studied by the new generation numerical weather prediction
新疆双语教育的成败直接决定着新疆跨越式发展的成败。双语教育又好又快发展的内涵和要求应当由以下几个方面组成:其发展规律应符合一般教育的规律,应掌握好双语教育内部语种
改革开放初期,主要是1979年10月至1983年5月,三明在抓社会主义精神文明建设的过程中对民生问题十分关注,从民生问题入手抓精神文明建设,在解决民生问题的过程中采取了一些好
二十世纪美国文学最明显的一个变化就是以前以个别作家的名字为人们所注意的黑人文学已成为独树一帜且有一定影响的艺术领域,也涌现出了大量关于黑人文学的作品.本文主要以卡
建设学习型、服务型、创新型党组织,是党的十八大对全党提出的一项政治政治任务,体现了新时期党的建设新的伟大工程的内在要求,对于提高党的执政能力,保持党的先进性和纯洁性具有
本文主要介绍了罗伯特·潘·沃伦的文学成果在中国的研究述评。当代中国沃伦文学成果的研究主要体现在三个方面:一是从沃伦的多重身份入手,文学批评家,小说家,诗人;二是随着
This paper deals with the problem of sharp observability inequality for the 1-D plate equation wtt + wxxxx + q(t,x)w =0 with two types of boundary conditions w
The basic technology and properties of the brake blocks made of modified needle-like wollastonite and fibrous sepiolite were intensively researched.The impact s