Refactoring GrPPI: Generic Refactoring for Generic Parallelism in C++

被引:0
|
作者
Christopher Brown
Vladimir Janjic
Adam D. Barwell
J. Daniel Garcia
Kenneth MacKenzie
机构
[1] University of St Andrews,School of Computer Science
[2] University of Dundee,School of Science and Engineering
[3] University Carlos III of Madrid,undefined
[4] IOHK,undefined
关键词
Refactoring; Parallelism; Parallel patterns; TBB; C++; GrPPI; C++ threads;
D O I
暂无
中图分类号
学科分类号
摘要
The Generic Reusable Parallel Pattern Interface (GrPPI) is a very useful abstraction over different parallel pattern libraries, allowing the programmer to write generic patterned parallel code that can easily be compiled to different backends such as FastFlow, OpenMP, Intel TBB and C++ threads. However, rewriting legacy code to use GrPPI still involves code transformations that can be highly non-trivial, especially for programmers who are not experts in parallelism. This paper describes software refactorings to semi-automatically introduce instances of GrPPI patterns into sequential C++ code, as well as safety checking static analysis mechanisms which verify that introducing patterns into the code does not introduce concurrency-related bugs such as race conditions. We demonstrate the refactorings and safety-checking mechanisms on four simple benchmark applications, showing that we are able to obtain, with little effort, GrPPI-based parallel versions that accomplish good speedups (comparable to those of manually-produced parallel versions) using different pattern backends.
引用
收藏
页码:603 / 625
页数:22
相关论文
共 50 条
  • [31] Generic parallel programming using C++ templates and skeletons
    Bischof, H
    Gorlatch, S
    Leshchinskiy, R
    DOMAIN-SPECIFIC PROGRAM GENERATION, 2003, 3016 : 107 - 126
  • [32] SeqAn An efficient, generic C++ library for sequence analysis
    Andreas Döring
    David Weese
    Tobias Rausch
    Knut Reinert
    BMC Bioinformatics, 9
  • [33] Refactoring the FreeBSD Kernel with Checked C
    Duan, Junhan
    Yang, Yudi
    Zhou, Jie
    Criswell, John
    2020 IEEE SECURE DEVELOPMENT (SECDEV 2020), 2020, : 15 - 22
  • [34] Embracing the C preprocessor during refactoring
    Garrido, Alejandra
    Johnson, Ralph
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2013, 25 (12) : 1285 - 1304
  • [35] Generic programming for scientific computing in C++, Java']Java™, and C#
    Gerlach, J
    Kneis, J
    ADVANCED PARALLEL PROCESSING TECHNOLOGIES, PROCEEDINGS, 2003, 2834 : 301 - 310
  • [36] Simulation of a Model for Refactoring Approach for Parallelism Using Parallel Computing Tool Box
    Makka, Shanthi
    Sagar, B. B.
    PROCEEDINGS OF FIRST INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY FOR INTELLIGENT SYSTEMS: VOL 2, 2016, 51 : 77 - 84
  • [37] GENERIC PROGRAMMING AND THE C++ STL - FOCUSING ON DATA REPRESENTATION AND ALGORITHMS
    ZIGMOND, D
    DR DOBBS JOURNAL, 1995, 20 (08): : 18 - &
  • [38] Refactoring to Standard C++20 Modules
    Szalay, Richard
    Porkolab, Zoltan
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2025, 37 (01)
  • [39] Understanding, Refactoring, and Fixing Concurrency in C#
    Okur, Semih
    2015 30TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2015, : 898 - 901
  • [40] Parallelism refactoring algorithm of semantic workflows based on data produce-consume dependency
    Sun J.
    Wen L.
    Kuang Z.
    Li T.
    Zhang Z.
    Jisuanji Jicheng Zhizao Xitong/Computer Integrated Manufacturing Systems, CIMS, 2020, 26 (06): : 1636 - 1650