arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0910.2324cs.PLcs.DC
收藏

基于Cell宽带引擎架构的矩阵语言加速

Accelerating the Execution of Matrix Languages on the Cell Broadband Engine Architecture

Raymes Khoury, Bernd Burgstaller, Bernhard Scholz

摘要:

矩阵语言,包括MATLAB和Octave,是科学和工程应用的既定标准。它们提供了交互式编程环境,由于它们的脚本语言具有矩阵数据类型,因此易于使用。矩阵语言的当前实现没有充分利用高性能、专用芯片架构,例如IBM PowerXCell处理器(Cell),该处理器目前用于世界上最快的计算机。我们提出了一个新的框架,扩展Octave利用细胞的计算能力。有了这个框架,程序员就不必再引入明确的并行性概念。相反,程序员使用一种新的矩阵数据类型,在Cell的协同处理元素(SPE)上并行执行矩阵操作。我们采用懒惰的评估语义为我们的新矩阵数据类型,以获得矩阵操作的执行轨迹。跟踪被转换为数据依赖图;数据依赖图中的操作被降低(分成子矩阵),在SPE上调度和执行。由此我们开发了矩阵语言程序的(1)数据并行,(2)指令级并行,(3)流水线并行和(4)任务并行。我们进行了大量的实验,以证明我们的方法的有效性。我们的基于Cell的实现在最新的Intel Core 2 Quad处理器上运行的代码上实现了高达12倍的加速。

英文摘要:

Matrix languages, including MATLAB and Octave, are established standards for applications in science and engineering. They provide interactive programming environments that are easy to use due to their scripting languages with matrix data types. Current implementations of matrix languages do not fully utilise high-performance, special-purpose chip architectures such as the IBM PowerXCell processor (Cell), which is currently used in the fastest computer in the world. We present a new framework that extends Octave to harness the computational power of the Cell. With this framework the programmer is relieved of the burden of introducing explicit notions of parallelism. Instead the programmer uses a new matrix data-type to execute matrix operations in parallel on the synergistic processing elements (SPEs) of the Cell. We employ lazy evaluation semantics for our new matrix data-type to obtain execution traces of matrix operations. Traces are converted to data dependence graphs; operations in the data dependence graph are lowered (split into sub-matrices), scheduled and executed on the SPEs. Thereby we exploit (1) data parallelism, (2) instruction level parallelism, (3) pipeline parallelism and (4) task parallelism of matrix language programs. We conducted extensive experiments to show the validity of our approach. Our Cell-based implementation achieves speedups of up to a factor of 12 over code run on recent Intel Core2 Quad processors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑