Directive-Based Parallelization of For-Loops at LLVM IR Level

被引:0
|
作者
Jingu, Kengo [1 ]
Shigenobu, Kohta [1 ]
Ootsu, Kanemitsu [1 ]
Ohkawa, Takeshi [1 ]
Yokota, Takashi [1 ]
机构
[1] Utsunomiya Univ, Grad Sch Engn, Utsunomiya, Tochigi, Japan
来源
2019 20TH IEEE/ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD) | 2019年
关键词
LLVM; loop parallelization; IR code; parallelization directives;
D O I
10.1109/snpd.2019.8935667
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Currently, multicore processors widely spread and many computers can improve processing performance by multithreading. However, many programs are still processed sequentially, and they do not make full use of their parallelism. To solve this problem, it is quite promising to automatically parallelize the binary code of the program by using binary translation techniques. Based on this background, we have proposed a system that automatically optimizes and parallelizes a binary code using LLVM. In this paper, we design the IR-level parallelization directives for the LLVM infrastructure and implement them in LLVM. This allows us to independently develop the compilation pass of code analysis and the pass of the code generation for parallelization. The separation of code analysis and code generation can realize the ease of the reuse of them. Evaluation results show that our LLVM compiler pass can generate parallelized IR code from sequential IR code with IR-level parallelization directives. The parallelized IR code achieved speedup as highly as the parallelized source code using OpenMP.
引用
收藏
页码:421 / 426
页数:6
相关论文
共 50 条
  • [41] Effectiveness of strategic environmental assessment in Canada under directive-based and informal practice
    Noble, Bram
    Gibson, Robert
    White, Lisa
    Blakley, Jill
    Croal, Peter
    Nwanekezie, Kelechi
    Doelle, Meinhard
    IMPACT ASSESSMENT AND PROJECT APPRAISAL, 2019, 37 (3-4) : 344 - 355
  • [42] OpenACC to FPGA: A Framework for Directive-based High-Performance Reconfigurable Computing
    Lee, Seyong
    Kim, Jungwon
    Vetter, Jeffrey S.
    2016 IEEE 30TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM (IPDPS 2016), 2016, : 544 - 554
  • [43] MLSA: a static bugs analysis tool based on LLVM IR
    Liang, Hongliang
    Wang, Lei
    Wu, Dongyang
    Xu, Jiuyun
    INTERNATIONAL JOURNAL OF NETWORKED AND DISTRIBUTED COMPUTING, 2016, 4 (03) : 137 - 144
  • [44] Multi-GPU Support on Single Node Using Directive-Based Programming Model
    Xu, Rengan
    Tian, Xiaonan
    Chandrasekaran, Sunita
    Chapman, Barbara
    SCIENTIFIC PROGRAMMING, 2015, 2015
  • [45] Exploring the interoperability of remote GPGPU virtualization using rCUDA and directive-based programming models
    Adrián Castelló
    Antonio J. Peña
    Rafael Mayo
    Judit Planas
    Enrique S. Quintana-Ortí
    Pavan Balaji
    The Journal of Supercomputing, 2018, 74 : 5628 - 5642
  • [46] VANDALIR: Vulnerability Analyses Based on Datalog and LLVM-IR
    Schilling, Joschua
    Mueller, Tilo
    DETECTION OF INTRUSIONS AND MALWARE, AND VULNERABILITY ASSESSMENT, DIMVA 2022, 2022, 13358 : 96 - 115
  • [47] MLSA: A Static Bugs Analysis Tool based on LLVM IR
    Liang, Hongliang
    Wang, Lei
    Wu, Dongyang
    Xu, Jiuyun
    2016 17TH IEEE/ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD), 2016, : 407 - 412
  • [48] Exploring the interoperability of remote GPGPU virtualization using rCUDA and directive-based programming models
    Castello, Adrian
    Pena, Antonio J.
    Mayo, Rafael
    Planas, Judit
    Quintana-Orti, Enrique S.
    Balaji, Pavan
    JOURNAL OF SUPERCOMPUTING, 2018, 74 (11): : 5628 - 5642
  • [49] FLUX: Finding Bugs with LLVM IR Based Unit Test Crossovers
    Liu, Eric
    Xu, Shengjie
    Lie, David
    2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, : 1061 - 1072
  • [50] A data-centric directive-based framework to accelerate out-of-core stencil computation on a GPU
    Shen, Jingcheng
    Ino, Fumihiko
    Farrés, Albert
    Hanzich, Mauricio
    IEICE Transactions on Information and Systems, 2020, E103D (12) : 2421 - 2434