Skip to content
Advertisement

Do i need to install Nvidia’s SDK(CUDA) for OpenCL to detect Nvidia GPU?

I have a code written in C (using opencl specs) to list all the available devices. My PC has an AMD FirePro as well as Nvidia’s Tesla graphics card installed. I first installed AMD-APP-SDK-v3.0-0.113.50-Beta-linux64.tar.bz2 but it didn’t seem to work so thereafter I installed OpenCL™ Runtime 15.1 for Intel® Core™ and Intel® Xeon® Processors for Red Hat* and SLES* Linux* OS (64-bit) & then OpenCL™ Code Builder . But the following code lists only the CPU and does not detect the 2 graphics card.

JavaScript

This is what it returns:

JavaScript

Do I need to install any other driver or is there anything wrong with the code?

Advertisement

Answer

The only thing that should be required for an NVIDIA GPU to support OpenCL is the GPU driver. The CUDA toolkit should not be necessary.

An appropriate NVIDIA GPU driver for your GPU and OS can be found using the wizard here.

Advertisement