【24h】

CuPP - A framework for easy CUDA integration

机译:CuPP-易于CUDA集成的框架

获取原文

摘要

This paper reports on CuPP, our newly developed C++ framework designed to ease integration of NVIDIAs GPGPU system CUDA into existing C++ applications. CuPP provides interfaces to reoccurring tasks that are easier to use than the standard CUDA interfaces. In this paper we concentrate on memory management and related data structures. CuPP offers both a low level interface - mostly consisting of smartpointers and memory allocation functions for GPU memory - and a high level interface offering a C++ STL vector wrapper and the so-called type transformations. The wrapper can be used by both device and host to automatically keep data in sync. The type transformations allow developers to write their own data structures offering the same functionality as the CuPP vector, in case a vector does not conform to the need of the application. Furthermore the type transformations offer a way to have two different representations for the same data at host and device, respectively. We demonstrate the benefits of using CuPP by integrating it into an example application, the open-source steering library OpenSteer. In particular, for this application we develop a uniform grid data structure to solve the k-nearest neighbor problem that deploys the type transformations. The paper finishes with a brief outline of another CUDA application, the Einstein@Home client, which also requires data structure redesign and thus may benefit from the type transformations and future work on CuPP.
机译:本文报道了我们最新开发的C ++框架CuPP,该框架旨在简化NVIDIA GPGPU系统CUDA与现有C ++应用程序的集成。与标准CUDA接口相比,CuPP提供了用于重复执行任务的接口,这些接口更易于使用。在本文中,我们专注于内存管理和相关的数据结构。 CuPP提供了一个低级接口(主要由用于GPU内存的智能指针和内存分配功能组成)以及一个提供C ++ STL矢量包装器和所谓的类型转换的高级接口。设备和主机均可使用包装器来自动保持数据同步。类型转换允许开发人员编写自己的数据结构,以提供与CuPP矢量相同的功能,以防矢量不符合应用程序的需求。此外,类型转换提供了一种方法,使主机和设备上的同一数据分别具有两个不同的表示形式。通过将CuPP集成到示例应用程序(开源指导库OpenSteer)中,我们演示了使用CuPP的好处。特别是,对于此应用程序,我们开发了统一的网格数据结构来解决部署类型转换的k最近邻问题。本文最后简要介绍了另一个CUDA应用程序Einstein @ Home客户端,它也需要重新设计数据结构,因此可能会受益于类型转换和CuPP的未来工作。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号