From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case verifies that the Intel Compute Runtime for OpenCL applications functions correctly on systems with Intel graphics hardware. |setup= # Ensure Fedora is installed on a system with Intel integrated graphics. # Install the "intel-compute-runtime" package using `sudo dnf install intel-compute-runtime`. # Additionally, install OpenCL utilities and development packages, e.g., `sudo dnf install clinfo opencl-headers`. # Reboot the syst...")
 
No edit summary
Line 7: Line 7:
# Reboot the system to ensure all drivers are correctly loaded.
# Reboot the system to ensure all drivers are correctly loaded.
|actions=
|actions=
Be as specific as required for the target audience.
 
# Open a terminal.
# Open a terminal.
# Run `clinfo` to list all OpenCL platforms and devices detected on the system. Ensure Intel devices are listed.
# Run `clinfo` to list all OpenCL platforms and devices detected on the system. Ensure Intel devices are listed.
Line 13: Line 13:
# Monitor the system performance and stability while the OpenCL application is running, using system monitoring tools like `htop` or `intel_gpu_top`.
# Monitor the system performance and stability while the OpenCL application is running, using system monitoring tools like `htop` or `intel_gpu_top`.
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
The following must be true to consider this a successful test run.
# `clinfo` successfully lists Intel integrated graphics as an available OpenCL device.
# `clinfo` successfully lists Intel integrated graphics as an available OpenCL device.
# The OpenCL application compiles without errors and runs successfully.
# The OpenCL application compiles without errors and runs successfully.

Revision as of 03:10, 12 March 2024

Description

This test case verifies that the Intel Compute Runtime for OpenCL applications functions correctly on systems with Intel graphics hardware.

Setup

  1. Ensure Fedora is installed on a system with Intel integrated graphics.
  2. Install the "intel-compute-runtime" package using sudo dnf install intel-compute-runtime.
  3. Additionally, install OpenCL utilities and development packages, e.g., sudo dnf install clinfo opencl-headers.
  4. Reboot the system to ensure all drivers are correctly loaded.

How to test

  1. Open a terminal.
  2. Run clinfo to list all OpenCL platforms and devices detected on the system. Ensure Intel devices are listed.
  3. Compile and run a simple OpenCL application that performs a basic computation, for example, vector addition. You can find sample code in the OpenCL SDK or online tutorials.
  4. Monitor the system performance and stability while the OpenCL application is running, using system monitoring tools like htop or intel_gpu_top.

Expected Results

The following must be true to consider this a successful test run.

  1. clinfo successfully lists Intel integrated graphics as an available OpenCL device.
  2. The OpenCL application compiles without errors and runs successfully.
  3. The application correctly utilizes the Intel GPU for computation, as evidenced by output validation and GPU activity monitors.
  4. No system instability or crashes are observed during the execution of OpenCL applications.

Optional

Test with various OpenCL versions supported by the runtime, and try running more complex or GPU-intensive OpenCL applications to further evaluate performance and stability.