Cuda 相关库的介绍

本文介绍了CUDA为构建类似C++的编程环境所提供的库,包括数学API、STL风格的thrust库、用于科学计算和图像处理的库,以及CUDA的device API和runtime API。CUDA runtime API提供隐式初始化和上下文管理,而driver API则提供更底层的控制,但编程和调试更为复杂。
摘要由CSDN通过智能技术生成

Cuda在努力构造一个类似CPP的完整的编程环境,所以他提供了一系列的库。

http://docs.nvidia.com/cuda/index.html


1) math API

类比C的math库有三角函数、对数、指数等基本的函数。


2) thrust

STL类似的Cuda实现,可以实现快速的排序,变换等操作。

http://docs.nvidia.com/cuda/thrust/index.html


3) 科学计算和图像视频处理相关的库,满足科学计算加速的基本需求。

如BLAS FFT SPARSE等。


4) 面向CUDA编程的device API 和 runtime API

这两个是不同层次的编程环境,彼此互斥,device的更底层。各有所长看需求。

It is composed of two APIs:

  • A low-level API called the CUDA driver API,
  • A higher-level API called the CUDA runtime API that is implemented on top of the CUDA driver API.

These APIs are mutually exclusive: An application should use either one or the other.

The CUDA runtime eases device code management by providing implicit initialization, context management, and module ma

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值