The clinfo is a command line tool that displays detailed information about the OpenCL platforms and devices (CPU, GPU, etc.) available on a system. This tutorial explains how to install clinfo on Ubuntu 24.04.
Install clinfo
Run the following command to refresh the package lists:
sudo apt update
Install clinfo:
sudo apt install -y clinfo
After installation, you can verify the version of clinfo using the following command:
clinfo --version
Testing clinfo
To use the clinfo
command, simply run it in the terminal to display detailed information about your system's OpenCL platforms and devices. For a quick summary of available platforms and devices, you can use the -l
option:
clinfo -l
Output example:
Platform #0: NVIDIA CUDA
`-- Device #0: NVIDIA GeForce RTX 3070 Laptop GPU
If clinfo produces no output or shows no platforms/devices, it likely means the necessary GPU drivers (such as NVIDIA or Intel) are not installed or not properly configured.
Uninstall clinfo
To fully remove clinfo and its associated dependencies, run the following command:
sudo apt purge --autoremove -y clinfo
Leave a Comment
Cancel reply