...
首页> 外文期刊>Computer architecture news >Accelerator: Using Data Parallelism to Program GPUs for General-Purpose Uses
【24h】

Accelerator: Using Data Parallelism to Program GPUs for General-Purpose Uses

机译:加速器:使用数据并行性为通用用途的GPU编程

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

摘要

GPUs are difficult to program for general-purpose uses. Programmers can either learn graphics APIs and convert their applications to use graphics pipeline operations or they can use stream programming abstractions of GPUs. We describe Accelerator, a system that uses data parallelism to program GPUs for general-purpose uses instead. Programmers use a conventional imperative programming language and a library that provides only high-level data-parallel operations. No aspects of GPUs are exposed to programmers. The library implementation compiles the data-parallel operations on the fly to optimized GPU pixel shader code and API calls. We describe the compilation techniques used to do this. We evaluate the effectiveness of using data parallelism to program GPUs by providing results for a set of compute-intensive benchmarks. We compare the performance of Accelerator versions of the benchmarks against hand-written pixel shaders. The speeds of the Accelerator versions are typically within 50% of the speeds of hand-written pixel shader code. Some benchmarks significantly outperform C versions on a CPU: they are up to 18 times faster than C code running on a CPU.
机译:GPU难以针对通用用途进行编程。程序员可以学习图形API并转换其应用程序以使用图形管线操作,也可以使用GPU的流编程抽象。我们描述了Accelerator,这是一个使用数据并行性来为通用用途的GPU编程的系统。程序员使用常规的命令式编程语言和仅提供高级数据并行操作的库。 GPU的任何方面都不会暴露给程序员。该库实现可实时编译数据并行操作,以优化GPU像素着色器代码和API调用。我们描述了用于执行此操作的编译技术。我们通过提供一组计算密集型基准的结果来评估使用数据并行性对GPU进行编程的有效性。我们将基准测试的Accelerator版本与手写像素着色器的性能进行了比较。加速器版本的速度通常在手写像素着色器代码速度的50%以内。一些基准测试明显优于CPU上的C版本:它们比CPU上运行的C代码快18倍。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号