OpenCL参与者-使用CAF将数据并行添加到基于参与者的编程中
OpenCL Actors - Adding Data Parallelism to Actor-based Programming with CAF
摘要:
Actor计算模型是为无缝支持并发和分布而设计的。然而,它仍然不具体的数据并行程序流,而现代的许多核心硬件,如图形处理单元(GPU)或协处理器的可用处理能力增加了通用计算的数据并行的相关性。在这项工作中,我们介绍了OpenCL启用的演员的C++演员框架(CAF)。这为访问任何OpenCL设备提供了一个高级接口,而无需离开Actor范例。这种新型的Actor被集成到CAF的运行时环境中,并在异构硬件上的分布式系统中产生透明的消息传递。遵循CAF中的actor逻辑,OpenCL内核可以在封装在C++ actor中的同时进行组合,因此可以以多级方式对驻留在GPU上的数据进行操作。因此,开发人员能够从原语构建复杂的数据并行程序,而无需离开Actor范式,也不会牺牲性能。我们对商用GPU、Nvidia TESLA和Intel PHI的评估显示,在卸载较大工作负载时,预期的线性扩展行为。对于亚秒级负载,发现卸载效率在设备之间存在很大差异。此外,我们的研究结果表明,使用本机OpenCL API编程的开销可以忽略不计。
英文摘要:
The actor model of computation has been designed for a seamless support of concurrency and distribution. However, it remains unspecific about data parallel program flows, while available processing power of modern many core hardware such as graphics processing units (GPUs) or coprocessors increases the relevance of data parallelism for general-purpose computation. In this work, we introduce OpenCL-enabled actors to the C++ Actor Framework (CAF). This offers a high level interface for accessing any OpenCL device without leaving the actor paradigm. The new type of actor is integrated into the runtime environment of CAF and gives rise to transparent message passing in distributed systems on heterogeneous hardware. Following the actor logic in CAF, OpenCL kernels can be composed while encapsulated in C++ actors, hence operate in a multi-stage fashion on data resident at the GPU. Developers are thus enabled to build complex data parallel programs from primitives without leaving the actor paradigm, nor sacrificing performance. Our evaluations on commodity GPUs, an Nvidia TESLA, and an Intel PHI reveal the expected linear scaling behavior when offloading larger workloads. For sub-second duties, the efficiency of offloading was found to largely differ between devices. Moreover, our findings indicate a negligible overhead over programming with the native OpenCL API.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。