DirectCompute和OpenCL for GPU编程? [英] DirectCompute versus OpenCL for GPU programming?

查看:454
本文介绍了DirectCompute和OpenCL for GPU编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些(财务)任务应该很好地映射到GPU计算,但我不确定是否应该使用OpenCL或DirectCompute。我做了一些GPU计算,但它是很久以前(3年)。我通过OpenGL做了,因为那时没有真正的任何替代。

I have some (financial) tasks which should map well to GPU computing, but I'm not really sure if I should go with OpenCL or DirectCompute. I did some GPU computing, but it was a long time ago (3 years). I did it through OpenGL since there was not really any alternative back then.

我看到一些OpenCL演示文稿,看起来很不错。我还没有看到任何关于DirectCompute的事情,但我期望它也很好。

I've seen some OpenCL presentations and it looks really nice. I haven't seen anything about DirectCompute yet, but I expect it to also be good.

我对跨平台兼容性不感兴趣,除此之外, ,我期望两个模型是相似的,以至于在尝试从一个到另一个不引起大的头痛。

I'm not interested at the moment in cross-platform compatibility, and besides, I expect the two models to be similar enough to not cause a big headache when trying to go from one to the other.

所以,你使用这两个?特别是DirectCompute?如何与OpenCL(和CUDA)比较?

So, did you use anyone of these two? Especially DirectCompute? How does it compare to OpenCL (and CUDA)?

推荐答案

由于你正在寻找非图形计算,建议你偏好OpenCL在DirectCompute,因为你很可能在社区帮助的方式找到更多。

Given that you're looking to non-graphics computations, I would suggest that you prefer OpenCL over DirectCompute since you are likely to find more in the way of community assistance.

鉴于你已经确定从一个到另一个相对简单,即一旦你已经完成了并行化你的应用程序的工作,你也可以考虑CUDA over OpenCL和DirectCompute同样的原因。

Given that you've already identified that going from one to another is relatively simple, i.e. once you've already done the work to parallelise your application, you could also consider CUDA over both OpenCL and DirectCompute for the same reason.

工作在OpenGL之前;任何他们应该是一个喜悦与使用相比!

You've worked in OpenGL before; any of them ought to be a delight to use compared with that!

这篇关于DirectCompute和OpenCL for GPU编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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