Altera_Forum
Honored Contributor
8 years agoProfiling OpenCL kernel code
Setting up profiling for standard applications is usually fairly trivial. For example, to generate C or C++ language code coverage analysis, it's a simple matter of adding "--coverage" to the gcc command line (for both compile and link flags).
However, there is ZERO documentation about how to generate coverage information for code that gets compiled to OpenCL kernels. There seems to be no way to get "external" profiling data, and source code must be modified to include calls to clGetEventProfilingInfo wherever profiling data is desired. Apparently this is a failure in the OpenCL Specification, so Altera is not to blame, but, ignoring the lack of profiling support is a huge omission - I'd call it a "Schoolboy error". When will profiling support make it into the Specification, and be supported by Altera SDKs ?