Output Validation

Kernel Development Framework enables you to set a reference point for your OpenCL™ Kernel output variable. The Kernel Development Framework validates the output variable after each kernel execution. The validation results appear in the Run report.

You can compare the output variable with its reference in the Image and Buffer viewers.

To validate output variables:

  1. In the Assigned Variables view, click the Validation Reference column and choose a validation reference.
  2. Check the Enable output validation checkbox and run the kernel.
  3. For each validation reference you set in step 1, you can see the results of the validation in the CodeBuilder Run Results window, in the Output Validation section.
    failed validation link in the Run Results view
  4. For a Validation failed result, click Validation failed link to view the output variable side-by-side with the reference variable.
    compare output variable with reference variable side-by-side
  5. Сlick the Next/Prev buttons to file the exact pixels and see their values:
    reviewing the pixels in the output variables