Kernel Execution Input

To assign analysis inputs for kernel execution, do the following:

  1. Select the desirable kernel from the session's kernels list in the Code Builder Session Explorer or from the Select Kernel combo box in the Code Builder Analyze toolbar.
  2. Open the Code Builder Analysis Input window from:

    In Visual Studio*: Tools > Intel Code Builder for OpenCL API > OpenCL Kernel Development > Windows > Analysis Input

    or by clicking the Open 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 here to assign link 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 details.

  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.
    Assigning variable verification references

  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 Code Builder Analysis Input pane, you need to assign variables for each kernel argument that is listed. Click on the link in the Assigned Variable column to assign the appropriate variable.
  2. Enter a valid name to enable the New Configuration button new configruation button. Click the button to duplicate the current configuration. You can edit the new configuration to create multiple analysis configurations.