From Fedora Project Wiki
Description
This test case ensures that the clinfo
tool correctly identifies and provides information about OpenCL platforms and devices on the system.
Setup
- Ensure you have a device with OpenCL support, such as a modern GPU.
- Install the
clinfo
package:sudo dnf install clinfo
. - If you're using a GPU, ensure the respective GPU drivers and OpenCL drivers are installed.
How to test
- Run the
clinfo
command without any options:clinfo
.
Expected Results
- The output of
clinfo
should list the available OpenCL platforms, such as vendors (e.g., NVIDIA, AMD, Intel). - For each platform, detailed information about available devices (e.g., GPU, CPU) should be listed, including their capabilities, memory size, max work group size, etc.
- No errors should be displayed unless there are no OpenCL platforms available, in which case a message indicating this should appear.
Optional
For extended testing:
- If you have devices from multiple vendors (e.g., NVIDIA GPU and Intel CPU both supporting OpenCL), ensure that
clinfo
lists platforms and devices for each vendor. - Compare the
clinfo
output with the specifications of your hardware to ensure accuracy. - Install or uninstall OpenCL support for a device and check if
clinfo
correctly updates the list of platforms and devices.