...
首页> 外文期刊>International journal of parallel programming >High Level Data Structures for GPGPU Programming in a Statically Typed Language
【24h】

High Level Data Structures for GPGPU Programming in a Statically Typed Language

机译:使用静态类型语言进行GPGPU编程的高级数据结构

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

摘要

To increase software performance, it is now common to use hardware accelerators. Currently, GPUs are the most widespread accelerators that can handle general computations. This requires to use GPGPU frameworks such as Cuda or OpenCL. Both are very low-level and make the benefit of GPGPU programming difficult to achieve. In particular, they require to write programs as a combination of two subprograms, and, to manually manage devices and memory transfers. This increases the complexity of the overall software design. The idea we develop in this paper is to guarantee expressiveness and safety for CPU and GPU computations and memory managements with high-level data-structures and static type-checking. In this paper, we present how statically typed languages, compilers and libraries help harness high level GPGPU programming. In particular, we show how we added high-level user-defined data structures to a GPGPU programming framework based on a statically typed programming language: OCaml. Thus, we describe the introduction of records and tagged unions shared between the host program and GPGPU kernels described via a domain specific language as well as a simple pattern matching control structure to manage them. Examples, practical tests and comparisons with state of the art tools, show that our solutions improve code design, productivity, and safety while providing a high level of performance.
机译:为了提高软件性能,现在通常使用硬件加速器。当前,GPU是可以处理常规计算的最广泛的加速器。这要求使用GPGPU框架,例如Cuda或OpenCL。两者都是非常低级的,因此很难实现GPGPU编程的优势。特别是,它们需要编写作为两个子程序的组合的程序,并手动管理设备和内存传输。这增加了整个软件设计的复杂性。我们在本文中提出的想法是通过高级数据结构和静态类型检查来确保CPU和GPU计算以及内存管理的表现力和安全性。在本文中,我们介绍了静态类型语言,编译器和库如何帮助利用高级GPGPU编程。特别是,我们展示了如何基于静态类型的编程语言OCaml向GPGPU编程框架添加高级用户定义的数据结构。因此,我们介绍了通过域特定语言描述的,在主机程序和GPGPU内核之间共享的记录和标记联合的记录的引入,以及用于管理它们的简单模式匹配控制结构。通过实例,实际测试以及与最先进工具的比较,我们的解决方案提高了代码设计,生产率和安全性,同时提供了高水平的性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号