【24h】

Achieving a Single Compute Device Image in OpenCL for Multiple GPUs

机译:在OpenCL中为多个GPU实现单个计算设备映像

获取原文
获取原文并翻译 | 示例

摘要

In this paper, we propose an OpenCL framework that treats multiple GPUs as a single compute device. Providing the single GPU image makes an OpenCL application written for a single GPU portable to the GPGPU systems with multiple GPUs. It also makes the application exploit the full computing power of the multiple GPUs and the entire amount of GPU memories available in the system. Our OpenCL framework automatically distributes at run time an OpenCL kernel written for a single GPU into multiple CUDA kernels that execute on the multiple GPUs. It applies a run-time memory access range analysis to the kernel by performing a sampling run and identifies an optimal workload distribution for the kernel. To achieve a single compute device image, the runtime maintains a virtual device memory that is allocated in the main memory of the GPGPU system. The OpenCL runtime treats the memory as if it were the memory of a single GPU device and keeps it consistent to the memories of the multiple GPUs. Our OpenCL-C-to-C translator generates the sampling code from the OpenCL kernel code and our OpenCL-C-to-CUDA-C translator generates the CUDA kernel code for the distributed OpenCL kernel. We show the effectiveness of our OpenCL framework by implementing the OpenCL runtime and the two source-to-source translators. We evaluate its performance with a GPGU system that contains eight CPUs using eleven OpenCL benchmark applications.
机译:在本文中,我们提出了一个OpenCL框架,该框架将多个GPU视为一个计算设备。提供单个GPU映像可使针对单个GPU编写的OpenCL应用程序可移植到具有多个GPU的GPGPU系统。它还使应用程序可以利用多个GPU的全部计算能力以及系统中可用的GPU内存总量。我们的OpenCL框架会在运行时自动将为单个GPU编写的OpenCL内核分发到在多个GPU上执行的多个CUDA内核中。通过执行采样运行,它将运行时内存访问范围分析应用于内核,并确定内核的最佳工作负载分配。为了获得单个计算设备映像,运行时维护一个虚拟设备内存,该内存在GPGPU系统的主内存中分配。 OpenCL运行时将内存视为单个GPU设备的内存,并使其与多个GPU的内存保持一致。我们的OpenCL-C到C转换器从OpenCL内核代码生成采样代码,而我们的OpenCL-C到CUDA-C转换器为分布式OpenCL内核生成CUDA内核代码。通过实现OpenCL运行时和两个源到源转换器,我们展示了OpenCL框架的有效性。我们使用包含11个OpenCL基准测试应用程序的8个CPU的GPGU系统评估其性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号