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

在线阅读下载全文

作  者:Mingzhen LI Yi LIU Bangduo CHEN Hailong YANG Zhongzhi LUAN Depei QIAN 

机构地区:[1]State Key Laboratory of Software Development Environment,Beijing 100191,China [2]School of Computer Science and Engineering,Beihang University,Beijing 100191,China

出  处:《Science China(Information Sciences)》2024年第1期16-34,共19页中国科学(信息科学)(英文版)

基  金:supported by National Key Research and Development Program of China(Grant No.2020YFB1506703);National Natural Science Foundation of China(Grant Nos.62072018,61732002,U22A2028);State Key Laboratory of Software Development Environment(Grant No.SKLSDE-2021ZX-06);Fundamental Research Funds for the Central Universities(Grant No.YWF-22-L-1127)。

摘  要: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.

关 键 词:domain-specific compiler emerging processor reusable dialect performance optimization MLIR 

分 类 号:TP332[自动化与计算机技术—计算机系统结构] TP314[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象