OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Line-by-line time profiling with an OpenCL kernel


hi, I am working on a project to optimize an OpenCL code. This kernel is computationally dense, and I'd like to see where is the bottleneck.

I haven't installed Intel's CL libraries yet, but I am wondering if it is possible to do a line-by-line profiling with my OpenCL kerbel when running on the CPU? we have profiled the code with CodeXL on an AMD GPU, but the profiler only reports abstract metrics, which are not exactly helpful in pinpointing the hotspots.

If I run the CL code with Intel's CL backend, can I use cachegrind/kcachegrind to obtain such info? or there is another tool I should use?


0 Kudos
1 Reply


I've never tried the tools you mentioned, but could be worth a try. Also, please check Intel(R) Vtune Amplifier - you can get an evaluation version to try it out. The following link could be worth checking as well:

We have OpenCL code profiling on the GPU in VTune, but not yet on the CPU.