摘要
自动向量化技术是编译器提高程序并行性的优化方法。随着支持SIMD结构处理器的计算平台的广泛应用,自动向量化技术也成为编译器技术研究的热点。GCC编译器是一种开源、跨平台的编译器。本文基于GCC内部自动向量化算法,结合Matrix芯片的体系结构和指令集特点,完成了Matrix向量指令集在GCC后端扩展,实现了基本的自动向量化支持。测试结果表明,扩展后的编译器能够支持Matrix向量指令集,进行基本的自动向量化,同时支持以内建函数方式开发基于Matrix的并行程序。
Autovectorization is an optimal method for the compiler to improve the parallelism of programs.With the extensive use of a computing platform supporting the SIMD architecture processor, autovectorization becomes a hot research of compiler technology. The GCC compiler is a kind of open source, cross-platform compiler. Based on the internal autovectorization algorithm and the architecture and instruction set characteristics of the Matrix chip, this paper extends the Matrix vector instruction set at GCC’s back-end and realizes the basic autovectorization support. The measured results indicate that the extended compiler can support the Matrix vector instruction set, the basic autovectorization and the development of the Matrix-based parallel programs by way of built-in functions.
出处
《计算机工程与科学》
CSCD
北大核心
2012年第1期58-63,共6页
Computer Engineering & Science