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

一次操作多数据的异构程序设计

Heterogeneous Programming with Single Operation Multiple Data

Hervé Paulino, Eduardo Marques

摘要:

异构在当今的商品计算系统中无处不在,其包括至少一个多核中央处理单元(CPU)和一个图形处理单元(GPU)。尽管如此,所有这些计算能力都没有在主流计算中得到利用,因为这些系统的编程需要底层架构及其不同执行模型的许多细节。目前并行编程的研究正在解决这些问题,但系统的异构性仍然暴露在语言级别。本文提出了一个统一的框架,基于单操作多数据模型,这样的异构系统的编程。该模型是声明性的,使编译器能够从同一源代码为多个架构生成代码。为此,我们设计了Java程序设计语言的一个简单扩展来体现该模型,并开发了一个编译器来为多核CPU和GPU生成代码。一个性能评估证明了该方法的有效性,尽管是基于一个简单的编程模型,是能够提供与手动调优的数据并行多线程Java应用程序的性能增益。

英文摘要:

Heterogeneity is omnipresent in today's commodity computational systems, which comprise at least one multi-core Central Processing Unit (CPU) and one Graphics Processing Unit (GPU). Nonetheless, all this computing power is not being exploited in mainstream computing, as the programming of these systems entails many details of the underlying architecture and of its distinct execution models. Current research on parallel programming is addressing these issues but, still, the systems' heterogeneity is exposed at language level. This paper proposes a uniform framework, grounded on the Single Operation Multiple Data model, for the programming of such heterogeneous systems. The model is declarative, empowering the compiler to generate code for multiple architectures from the same source. To this extent, we designed a simple extension of the Java programming language that embodies the model, and developed a compiler that generates code for both multi-core CPUs and GPUs. A performance evaluation attests the validity of the approach that, despite being based on a simple programming model, is able to deliver performance gains on par with hand-tuned data parallel multi-threaded Java applications.

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

↑