Question

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) ?

Was it helpful?

Solution

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/

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top