clinfo Does Not Print Anything

Note

This is an Ubuntu issue only.

OpenCL will not work if your user is not part of the render group and the video group.

OpenCL will not work if your user is not part of the render group.

OpenCL will not work if your user is not part of the video group.

Note

Support for Ubuntu 16.04 is removed since SDK 2.7. To see Ubuntu 16.04 instructions for an earlier SDK version, change the Knowledge Base version in the top left corner.

Open a terminal window by pressing Ctrl + Alt + T keys on the keyboard, then add your user to the correct group:

sudo gpasswd -a $USER render
sudo gpasswd -a $USER video
sudo gpasswd -a $USER render
sudo gpasswd -a $USER video

Restart your PC:

sudo reboot

Open a terminal window by pressing Ctrl + Alt + T keys on the keyboard, then execute the following commands:

Note

You first have to install clinfo.

/usr/bin/clinfo -l

This will print all available information about all OpenCL platforms on the system and the devices they expose.

../_images/clinfo-does-not-print-anything-screenshot.png

Alternatively, if you do not want to add your user to the group mentioned above, you can use sudo:

sudo /usr/bin/clinfo -l

In case the number of platforms is equal to 0 you need to Install OpenCL Drivers On Ubuntu.