Kernel Execution Input

To assign analysis inputs for an OpenCL kernel, follow the steps below:

  1. Select the desirable kernel from the session kernels list in the Code Builder Session Explorer or from the Select Kernel combo box in the Code Builder Analyze toolbar.
  2. Open the OpenCL Kernel Analysis Input window from: Windows > Show view > Other... and then Intel Code Builder for OpenCL API > OpenCL Kernel Analysis Input or by clicking the OpenCL Kernel Analysis Input button in the Code Builder Analyze toolbar.
  3. Assign a variable for each kernel argument in the Kernel Arguments table by clicking the Click to assign button under the Assigned Variable column. You can assign one-dimensional variables (such as integer, float, char, half, and so on) on-the-fly by typing single values into the table. See Variable Management for more information.
  4. You can assign a reference for each output variable (buffers or images) that you want to verify. If you specify a validation reference, after the kernel execution each one of the output variables will be compared with its assigned reference in order to validate the correctness of the kernel executions.
  5. Set the number of iterations, global size and local sizes per workload dimension in the Workgroup size definitions group box.

 

You can use the local size(s) text boxes for several different test configurations:

 

Also consider the following:

Creating a New Analysis Configuration

Follow these steps to create a new configuration for an existing built session:

  1. In the OpenCL Kernel Analysis Input view, you need to assign variables for each kernel argument that is listed.
  2. Enter a valid name to enable the New Configuration button. Click the button to duplicate the current configuration. You can edit the new configuration to create multiple analysis configurations.