dOCAL: high-level distributed programming with OpenCL and CUDA

被引:6
作者
Rasch, Ari [1 ]
Bigge, Julian [1 ]
Wrodarczyk, Martin [1 ]
Schulze, Richard [1 ]
Gorlatch, Sergei [1 ]
机构
[1] Univ Munster, Dept Math & Comp Sci, Munster, Germany
关键词
OpenCL; CUDA; Host code; Distributed system; Heterogenous system; Interoperability; Data transfer optimization;
D O I
10.1007/s11227-019-02829-2
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In the state-of-the-art parallel programming approaches OpenCL and CUDA, so-called host code is required for program's execution. Efficiently implementing host code is often a cumbersome task, especially when executing OpenCL and CUDA programs on systems with multiple nodes, each comprising different devices, e.g., multi-core CPU and graphics processing units; the programmer is responsible for explicitly managing node's and device's memory, synchronizing computations with data transfers between devices of potentially different nodes and for optimizing data transfers between devices' memories and nodes' main memories, e.g., by using pinned main memory for accelerating data transfers and overlapping the transfers with computations. We develop distributed OpenCL/CUDA abstraction layer (dOCAL)-a novel high-level C++ library that simplifies the development of host code. dOCAL combines major advantages over the state-of-the-art high-level approaches: (1) it simplifies implementing both OpenCL and CUDA host code by providing a simple-to-use, high-level abstraction API; (2) it supports executing arbitrary OpenCL and CUDA programs; (3) it allows conveniently targeting the devices of different nodes by automatically managing node-to-node communications; (4) it simplifies implementing data transfer optimizations by providing different, specially allocated memory regions, e.g., pinned main memory for overlapping data transfers with computations; (5) it optimizes memory management by automatically avoiding unnecessary data transfers; (6) it enables interoperability between OpenCL and CUDA host code for systems with devices from different vendors. Our experiments show that dOCAL significantly simplifies the development of host code for heterogeneous and distributed systems, with a low runtime overhead.
引用
收藏
页码:5117 / 5138
页数:22
相关论文
共 55 条
  • [1] The Loop-of-Stencil-Reduce paradigm
    Aldinucci, M.
    Danelutto, M.
    Drocco, M.
    Kilpatrick, P.
    Pezzi, G. Peretti
    Torquati, M.
    [J]. 2015 IEEE TRUSTCOM/BIGDATASE/ISPA, VOL 3, 2015, : 172 - 177
  • [2] [Anonymous], P 9 WORKSH GEN PURP
  • [3] [Anonymous], 2016, RHARISH100193 HALSTE
  • [4] [Anonymous], 2018, STANDARD C FDN FDN M
  • [5] [Anonymous], 2013, P 27 INT ACM C INT C, DOI [DOI 10.1145/2464996.2465008.2,21, DOI 10.1145/2464996.2465008]
  • [6] Arnold Steve, 2005, STEVE ARNOLD CCCC PR
  • [7] StarPU: a unified platform for task scheduling on heterogeneous multicore architectures
    Augonnet, Cedric
    Thibault, Samuel
    Namyst, Raymond
    Wacrenier, Pierre-Andre
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2011, 23 (02) : 187 - 198
  • [8] Boehm B., 1995, Annals of Software Engineering, V1, P57, DOI 10.1007/BF02249046
  • [9] Boost: Boost.Asio, 2018, BOOSTASIO
  • [10] Farms, Pipes, Streams and Reforestation: Reasoning about Structured Parallel Processes using Types and Hylomorphisms
    Castro, David
    Hammond, Kevin
    Sarkar, Susmit
    [J]. ACM SIGPLAN NOTICES, 2016, 51 (09) : 4 - 17