clinfo Does Not Print AnythingΒΆ

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

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

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:

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

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