OpenCL的CUDA或者哪个方向走? [英] OpenCL or CUDA Which way to go?

查看:205
本文介绍了OpenCL的CUDA或者哪个方向走?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调查,以便处理流数据使用的GPU的方法。我有两个选择,但不能决定哪个方向走?

I'm investigating ways of using GPU in order to process streaming data. I had two choices but couldn't decide which way to go?

我的指标分析如下:


  1. 易于使用(好的API)

  2. 社区和文档

  3. 性能

  4. 未来

我要code在linux下的C和C ++。

I'll code in C and C++ under linux.

推荐答案

的OpenCL


  • 从生产code接口

  • 不同的图形硬件之间移植

  • 有限的操作,但pre prepared快捷键

CUDA


  • 独立的语言(CUDA C)

  • 只有NVIDIA硬件

  • 在code几乎完全控制(在一个类似C语言编码)

  • 大量的分析和调试工具

底线 - OpenCL是便携,CUDA是NVIDIA而已。然而,作为一种独立的语言,CUDA是更强大和有一堆的真正的好工具。

Bottom line -- OpenCL is portable, CUDA is nVidia only. However, being an independent language, CUDA is much more powerful and has a bunch of really good tools.


  1. 易于使用 - OpenCL是更容易使用开箱即用,但一旦你安装了CUDA编码环境,它几乎就像在C编码

  2. 社区和文档 - 双方有着广泛的文档和示例,但是我觉得CUDA具有更好

  3. 性能 - CUDA允许更大的控制权,从而可以更好的微调,实现更高的性能

  4. 未来 - 很难说真的

  1. Ease of use -- OpenCL is easier to use out of the box, but once you setup the CUDA coding environment it's almost like coding in C.
  2. Community and Documentation -- both have extensive documentation and examples, however I think CUDA has better.
  3. Performance -- CUDA allows for greater control, hence can be better fine-tuned for higher performance.
  4. Future -- hard to say really.

这篇关于OpenCL的CUDA或者哪个方向走?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆