A MATLAB-Based Code Generator for Sparse Matrix Computations

A MATLAB-Based Code Generator for Sparse Matrix Computations
复制标题

基于 MATLAB 的稀疏矩阵计算代码生成器

DOI:
10.1007/978-3-540-30477-7_19
复制
发表时间:
2004
期刊:
[Proceedings 1992] The Fourth Symposium on the Frontiers of Massively Parallel Computation
影响因子:
--
通讯作者:
T. Kitamura
T. Kitamura
中科院分区:
--
文献类型:
--
作者:
Hideyuki Kawabata;Mutsumi Suzuki;T. Kitamura

文献摘要

被引文献

相似文献

本文介绍了一个矩阵语言编译器CMC,它将带注释的MatLab脚本翻译成Fortran 90程序。CMC的显著特点包括它对稀疏矩阵计算程序的适用性以及它在MatLab语言中的源代码级优化能力。与其他现有的类似翻译器不同,CMC具有基于三角形和对角线等矩阵形状信息生成代码的能力。集成了这些功能,CMC为用户提供了一种简单的方法来开发快速、大规模的数值计算代码,而不是原型。实验结果表明,CMC生成的SOR和CG方法的程序运行速度是原来的MATLAB脚本的数倍。
We present a matrix language compiler CMC which translates annotated MATLAB scripts into Fortran 90 programs. Distinguishing features of CMC include its applicability to programs with sparse matrix computations and its capability of source-level optimization in MATLAB language. Different from other existing similar translators, CMC has an ability to generate codes based on information on the shape of matrices such as triangular and diagonal. Integrating these functionalities, CMC provides the user with a simple way to develop fast large-scale numerical computation codes beyond prototyping. Experimental results show that the programs of SOR and CG methods generated by CMC can run several times as fast as the original MATLAB scripts.