Providing Source Code Level Portability Between CPU and GPU with MapCG

被引:0
|
作者
洪春涛 [1 ]
陈德颢 [1 ]
陈羽北 [2 ]
陈文光 [1 ]
郑纬民 [1 ]
林海波 [3 ]
机构
[1] Department of Computer Science and Technology, Tsinghua University
[2] Department of Electronic Engineering, Tsinghua University
[3] IBM China Research
关键词
D O I
暂无
中图分类号
学科分类号
摘要
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.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] Providing Source Code Level Portability Between CPU and GPU with MapCG
    Chun-Tao Hong
    De-Hao Chen
    Yu-Bei Chen
    Wen-Guang Chen
    Wei-Min Zheng
    Hai-Bo Lin
    [J]. Journal of Computer Science and Technology, 2012, 27 : 42 - 56
  • [2] Providing Source Code Level Portability Between CPU and GPU with MapCG
    洪春涛
    陈德颢
    陈羽北
    陈文光
    郑纬民
    林海波
    [J]. Journal of Computer Science & Technology, 2012, (01) : 42 - 56
  • [3] Providing Source Code Level Portability Between CPU and GPU with MapCG
    Hong, Chun-Tao
    Chen, De-Hao
    Chen, Yu-Bei
    Chen, Wen-Guang
    Zheng, Wei-Min
    Lin, Hai-Bo
    [J]. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2012, 27 (01) : 42 - 56
  • [4] MapCG: Writing Parallel Program Portable between CPU and GPU
    Hong, Chuntao
    Chen, Dehao
    Chen, Wenguang
    Zheng, Weimin
    Lin, Haibo
    [J]. PACT 2010: PROCEEDINGS OF THE NINETEENTH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, 2010, : 217 - 226
  • [5] Demonstrating GPU code portability and scalability for radiative heat transfer computations
    Peterson, Brad
    Humphrey, Alan
    Holmen, John
    Harman, Todd
    Berzins, Martin
    Sunderland, Dan
    Edwards, H. Carter
    [J]. JOURNAL OF COMPUTATIONAL SCIENCE, 2018, 27 : 303 - 319
  • [6] On the GPU-CPU Performance Portability of OpenCL for 3D Stencil Computations
    Su, Huayou
    Wu, Nan
    Wen, Mei
    Zhang, Chunyuan
    Cai, Xing
    [J]. 2013 19TH IEEE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS 2013), 2013, : 78 - 85
  • [7] USING TYPEDEFS FOR SOURCE-CODE PORTABILITY IN C
    SANTIC, JS
    [J]. ELECTRONIC DESIGN, 1995, 43 (02) : 111 - 112
  • [8] Exploring the performance and portability of the k-means algorithm on SYCL across CPU and GPU architectures
    Youssef Faqir-Rhazoui
    Carlos García
    [J]. The Journal of Supercomputing, 2023, 79 : 18480 - 18506
  • [9] QuickFaaS: Providing Portability and Interoperability between FaaS Platforms
    Rodrigues, Pedro
    Freitas, Filipe
    Simao, Jose
    [J]. FUTURE INTERNET, 2022, 14 (12):
  • [10] QuickFaaS: Providing Portability and Interoperability Between FaaS Platforms
    Rodrigues, Pedro
    Freitas, Filipe
    Simao, Jose
    [J]. ADVANCES IN SERVICE-ORIENTED AND CLOUD COMPUTING, ESOCC 2022, 2022, 1617 : 77 - 82