中国科学:信息科学(英文版)2024,Vol.67Issue(1) :16-34.DOI:10.1007/s11432-022-3727-6

Building a domain-specific compiler for emerging processors with a reusable approach

Mingzhen LI Yi LIU Bangduo CHEN Hailong YANG Zhongzhi LUAN Depei QIAN
中国科学:信息科学(英文版)2024,Vol.67Issue(1) :16-34.DOI:10.1007/s11432-022-3727-6

Building a domain-specific compiler for emerging processors with a reusable approach

Mingzhen LI 1Yi LIU 2Bangduo CHEN 2Hailong YANG 1Zhongzhi LUAN 2Depei QIAN2
扫码查看

作者信息

  • 1. State Key Laboratory of Software Development Environment,Beijing 100191,China;School of Computer Science and Engineering,Beihang University,Beijing 100191,China
  • 2. School of Computer Science and Engineering,Beihang University,Beijing 100191,China
  • 折叠

Abstract

High-performance computing and deep learning domains have been motivating the design of domain-specific processors.Although these processors can provide promising computation capability,they are notorious for exotic programming paradigms.To improve programming productivity and fully exploit the performance potential of these processors,domain-specific compilers(DSCs)have been proposed.However,building DSCs for emerging processors requires tremendous engineering efforts because the commonly used compilation stack is difficult to be reused.Owing to the advent of multilevel intermediate representation(MLIR),DSC developers can leverage reusable infrastructure to extend their customized functionalities without rebuilding the entire compilation stack.In this paper,we further demonstrate the effectiveness of MLIR by extending its reusable infrastructure to embrace a heterogeneous many-core processor(Sunway processor).In particular,we design a new Sunway dialect and corresponding backend for the Sunway processor,fully exploiting its architectural advantage and hiding its programming complexity.To show the ease of building a DSC,we leverage the Sunway dialect and existing MLIR dialects to build a stencil compiler for the Sunway processor.The experimental results show that our stencil compiler,built with a reusable approach,can even perform better than state-of-the-art stencil compilers.

Key words

domain-specific compiler/emerging processor/reusable dialect/performance optimization/MLIR

引用本文复制引用

基金项目

National Key Research and Development Program of China(2020YFB1506703)

National Natural Science Foundation of China(62072018)

National Natural Science Foundation of China(61732002)

National Natural Science Foundation of China(U22A2028)

State Key Laboratory of Software Development Environment(SKLSDE-2021ZX-06)

Fundamental Research Funds for the Central Universities(YWF-22-L-1127)

出版年

2024
中国科学:信息科学(英文版)
中国科学院

中国科学:信息科学(英文版)

CSTPCDEI
影响因子:0.715
ISSN:1674-733X
参考文献量1
段落导航相关论文