arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1211.5530cs.DCcs.SE
收藏

使用英特尔®至强融核(TM)协处理器高效混合执行C++应用程序

Efficient Hybrid Execution of C++ Applications using Intel(R) Xeon Phi(TM) Coprocessor

Jiri Dokulil, Enes Bajrovic, Siegfried Benkner, Sabri Pllana, Martin Sandrieser, Beverly Bachmayer

摘要:

英特尔(R)至强融核(TM)协处理器的推出为开发高度并行的应用程序开辟了新的可能性。英特尔C++ Composer XE中集成的架构的熟悉性和灵活性,以及编译器支持,使开发人员能够使用熟悉的编程范式和技术,这些通常不适合其他加速系统。现在可以轻松地在协处理器上使用复杂的C++模板代码,包括例如英特尔线程构建块(TBB)并行化库。这些技术不仅可行,而且通常也很高效,因为主机和协处理器属于同一架构系列,因此专为Xeon CPU设计的优化技术也有利于Xeon Phi。因此,高度优化的Xeon代码(如TBB库)在两者上都能很好地工作。在本文中,我们提出了一种新的并行库结构,它可以很容易地应用一个功能,并行阵列的每个成员,动态分配主机CPU和一个或多个协处理器卡之间的工作。我们描述了相关的运行时支持,并使用物理模拟的例子来证明,我们的库结构可以用来快速创建一个C++应用程序,将显着受益于混合执行,同时利用CPU内核和协处理器内核。实验结果表明,一个优化的源代码是足够的,使主机和协处理器的有效运行。

英文摘要:

The introduction of Intel(R) Xeon Phi(TM) coprocessors opened up new possibilities in development of highly parallel applications. The familiarity and flexibility of the architecture together with compiler support integrated into the Intel C++ Composer XE allows the developers to use familiar programming paradigms and techniques, which are usually not suitable for other accelerated systems. It is now easy to use complex C++ template-heavy codes on the coprocessor, including for example the Intel Threading Building Blocks (TBB) parallelization library. These techniques are not only possible, but usually efficient as well, since host and coprocessor are of the same architectural family, making optimization techniques designed for the Xeon CPU also beneficial on Xeon Phi. As a result, highly optimized Xeon codes (like the TBB library) work well on both. In this paper we present a new parallel library construct, which makes it easy to apply a function to every member of an array in parallel, dynamically distributing the work between the host CPUs and one or more coprocessor cards. We describe the associated runtime support and use a physical simulation example to demonstrate that our library construct can be used to quickly create a C++ application that will significantly benefit from hybrid execution, simultaneously exploiting CPU cores and coprocessor cores. Experimental results show that one optimized source code is sufficient to make the host and the coprocessors run efficiently.

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

↑