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

  1. Ensure you have a device with OpenCL support, such as a modern GPU.
  2. Install the clinfo package: sudo dnf install clinfo.
  3. If you're using a GPU, ensure the respective GPU drivers and OpenCL drivers are installed.

How to test

  1. Run the clinfo command without any options: clinfo.

Expected Results

  1. The output of clinfo should list the available OpenCL platforms, such as vendors (e.g., NVIDIA, AMD, Intel).
  2. 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.
  3. 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:

  1. 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.
  2. Compare the clinfo output with the specifications of your hardware to ensure accuracy.
  3. Install or uninstall OpenCL support for a device and check if clinfo correctly updates the list of platforms and devices.