OpenCL programming on CPU and GPU with Nvidia cards on Ubuntu 10.10 ?


I have a bi Xeon machine with Ubuntu 10.10 and a Nvidia GTX 480 graphic card on it and I’d like to use OpenCL on the CPU and the GPU.

I installed the latest Nvidia driver (nvidia-current) with apt-get and I downloaded and installed the latest CUDA Toolkit (3.2) from the Nvidia page.

BUT this allows me only to run OpenCL code on the Nvidia GPU and NOT on the CPU.

I then read some articles on the internet saying that the ATI SDK is able to run OpenCL code on the CPU.

I installed the latest version of ATI drivers then tried to compile the SDK.

I was then able to run code on the CPU but not on the GPU anymore.

Is there any way to run OpenCL code both on the Nvidia GPU and the Xeon CPU ?

If you have the ICD setup correctly then you should be able to run on both the CPU and GPU. However, the “ATI Sream SDK” platform will be a different platform than the “NVIDIA CUDA” platform.

Make sure that your code enumerates through all the platforms. You can use the ATI and NVIDIA OpenCL implementations side-by-side.