Generating a Session from an OpenCL™ Application
The Generate Session feature enables you to generate
a Kernel Development Framework session from an existing working executable
file of an application that uses OpenCL™ APIs. This enables you to rerun
a single kernel.
To create a Kernel Development Framework Session:
- In Microsoft* Visual Studio*, go to Tools > Intel Code
Builder for OpenCL API > OpenCL Kernel Development
> Generate Session.
- Select an application and its working directory.
- Optionally, you can configure the following:
- Add application arguments in the Arguments
field
- Change the output directory of the created sessions in the
Output Directory field.
- Set the number of configurations generated per kernel in the
Number of instance per NDRange.
By default, it is set to 1. In this case if there is more than
one instance of NDRange with the same global and local workgroup
sizes, only one configuration is created.
- Load the created sessions to the Kernel Development Framework.
By default, this checkbox is checked.
Session Generator Features
- The Session Generator generates regular Kernel Development Framework
sessions. It records any data needed to rerun the kernels:
*.cl
input file, build option, device selection (CPU/GPU), assigned arguments
and their data, global/local group sizes, target architecture (32/64
bit).
- The created variables are saved locally within the session.
- Every use of clBuildProgram API in the application creates a unique
session file.
- Programs that are not used in the application do not create a session
file.
- Every use of clEnqueueNDRangeKernel API in the application creates
a kernel configuration (see Creating
a New Analysis Configuration section).