1

If I want to re-write my application so that it leverages the power of nVidia's CUDA SDK, are there any differences at all in runtime performance between the different SDK offerings: C++, Java, Python?

Is there any difference at all between these 3 SDK's, besides the obvious language being used?

4

1 回答 1

3

处理的 CPU 绑定部分将对性能产生可衡量的影响。例如,如果您的 CUDA 数据需要在到达 GPU 之前进行预处理,那么在 Python 中编写数值例程就不是最理想的了。

如果您的 CUDA 例程支配了计算时间(CPU 保持相对空闲),那么任何绑定都是不错的选择。

最好先用 Python 等语言创建原型,如果发现性能瓶颈,则将该代码移至 C++。

于 2010-06-02T19:44:59.363 回答