Can I code my OpenCL application on an Nvidia GPU by installing ATI Stream SDK (as it will allow me to accelerate my CPU too which Nvidia programming SDK won't) ?

有帮助吗?

解决方案

You can have more than one platform (meaning: OpenCL implementation) installed on a machine. So even if you have a NVIDIA GPU, you can use the AMD OpenCL implementation for CPUs (or the Intel OpenCL SDK if you have an Intel CPU). However you can't use the AMD OpenCL implementation to run code on the NVIDIA GPU.

With this small utility lib you can easily select which implementation/platform to use: http://www.thebigblob.com/opencl-utilities/

其他提示

Yes, you can use the AMD SDK to build the host program and then target as many different devices as you want - CPU, NVIDIA GPU, whatever. But make sure you have separate versions of your OpenCL code that are optimized for each device.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top