计算机应用与软件2026,Vol.43Issue(1):25-32,8.DOI:10.3969/j.issn.1000-386x.2026.01.004
面向DCU加速器的异构代码自动映射与生成
AUTOMATIC MAPPING AND GENERATION OF HETEROGENEOUS CODE FOR DCU ACCELERATORS
摘要
Abstract
On the DCU platform,existing automatic parallelization tools rely on source-to-source transformation of program code,and cannot directly generate efficient DCU executable programs for serial code,which limits the efficiency of program development and migration,and produces performance loss.To solve this problem,the end-to-end translation from serial code to DCU parallel program was realized by using the decoupling feature of LLVM framework for front-end and back-end,by realizing automatic parallel mapping and code generation pass from serial LLVM IR to DCU executable program.The compiler used the polyhedron model algorithm to mine the parallelism in the serial LLVM IR,and automatically mapped the appropriate program regions to the DCU based on the heuristic method to generate the DCU kernel code.The test results on the Polybench test set show that the average performance of use cases after automatic parallelization can reach 1.8 times the original performance,and multiple use cases can reach a maximum speedup of 3.7×.关键词
DCU加速器/源到源变换/自动并行化/多面体模型/LLVM框架/异构代码映射Key words
DCU accelerator/Source to source transformation/Automatic parallelization/Polyhedron model/LLVM/Heterogeneous code mapping分类
信息技术与安全科学引用本文复制引用
许啸跃,韩林,王洪生,牛靖钰,柴赟达,张龙..面向DCU加速器的异构代码自动映射与生成[J].计算机应用与软件,2026,43(1):25-32,8.基金项目
河南省重大科技专项(221100210600). (221100210600)