首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于国产异构众核处理器的C++智能源码转换框架
引用本文:俞茂学,贾东宁,魏志强,许佳立,马广浩.一种基于国产异构众核处理器的C++智能源码转换框架[J].计算机工程与科学,2021,43(6):997-1005.
作者姓名:俞茂学  贾东宁  魏志强  许佳立  马广浩
作者单位:(1.青岛海洋科学与技术试点国家实验室,山东 青岛 266237;2.中国海洋大学信息科学与工程学院,山东 青岛 266100)
基金项目:山东省重大科研平台建设项目(2018SDPT01)
摘    要:国产异构众核处理器是我国打破国际技术壁垒,在高性能计算领域取得突破的关键环节.围绕国产超算的软件生态环境建设,采用智能源码转换的方法盘活海量多核架构的遗产代码是加速软件研发效率,推动领域发展的重要途径.针对国产运算核心不支持C++编译的现状,基于开源的ANTLR语言翻译工具,提出了一种面向异构众核处理器的智能化C++语言向C语言转换的辅助框架.该框架聚焦面向对象语言的关键特征,基于抽象语法树,实现了基类和继承类、函数定义、基于标签法的模板实例化以及部分STL库的C语言转换,建立了待转换代码的自动化标注体系,极大地提高了C++代码的转换和移植效率.通过对可衡量的并行计算基准应用BableStream进行自动转换和移植测试,证实了该转换框架的有效性.

关 键 词:异构众核  源码转换  OpenACC  并行计算  ANTLR  C++  
收稿时间:2020-08-24
修稿时间:2021-03-12

An intelligent C++ translator architecture for many-core processors
YU Mao-xue,JIA Dong-ning,WEI Zhi-qiang,XU Jia-li,MA Guang-hao.An intelligent C++ translator architecture for many-core processors[J].Computer Engineering & Science,2021,43(6):997-1005.
Authors:YU Mao-xue  JIA Dong-ning  WEI Zhi-qiang  XU Jia-li  MA Guang-hao
Affiliation:(1.Pilot National Laboratory for Marine Science Technology,Qingdao 266237; 2.College of Information Science and Engineering,Ocean University of China,Qingdao 266100,China)
Abstract:Domestic heterogeneous many-core processors are a key link for my country to break international technical barriers and make breakthroughs in the field of high-performance computing. Focusing on the construction of domestically produced super-computing software ecological environment, using the intelligent source code conversion method to revitalize the massive multi-core architecture legacy code is an important way to accelerate the efficiency of software development and promote the development of the field. Aiming at the current situation that domestic computing cores do not support C++ compilation, based on the open source ANTLR language translation tool, this paper proposes an auxiliary framework of the intelligent C++ to C conversion for heterogeneous many-core processors.The framework focuses on the key features of object-oriented languages. Based on the abstract syntax tree, it implements base classes and inheritance classes, function definitions, template instantiation based on tagging, and C language conversion of some STL libraries, and establishes automatic annotation of the code to be converted. The system greatly improves the conversion and transplantation efficiency of C++ code.The automatic conversion and transplantation test of the measurable parallel computing benchmark application BableStream confirms the effectiveness of the conversion method proposed in this paper.
Keywords:heterogeneous many-core  source code translator  OpenACC  parallel computing  ANTLR  C++  
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号