Modern research in code generators for dense linear algebra computations has shown the ability to produce optimized code with a performance which compares and often exceeds the one of state-of-the-art implementations by domain experts. However, the underlying infrastructure is often developed in isolation making the interconnection of logically combinable systems complicated if not impossible. In this paper, we propose to leverage MLIR as a unifying compiler infrastructure for the optimization of dense linear algebra operations. We propose a new MLIR dialect for expressing linear algebraic computations including matrix properties to enable high-level algorithmic transformations. The integration of this new dialect in MLIR enables end-to-end compilation of matrix computations via conversion to existing lower-level dialects already provided by the framework.
翻译:用于计算密度直线代数的现代代码生成器的现代研究显示,能够产生优化的代码,其性能比较并往往超过域专家实施最新技术的性能,然而,基础基础设施的开发往往是孤立的,使得逻辑可分解系统的互联性即使并非不可能也变得复杂。在本文件中,我们提议利用MLIR作为统一编译基础设施优化密度直线代数操作。我们提议用新的MLIR方言表达线直线代数计算,包括矩阵属性,以便能够进行高水平的算法转换。在MLIR中结合这种新方言,使得通过转换到框架已经提供的现有较低级别的方言,能够对矩阵计算进行端到端的汇编。