OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
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

QFang1
Novice
192 Views

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?

thanks

0 Kudos
1 Reply
Robert_I_Intel
Employee
192 Views

Hi,

I've never tried the tools you mentioned, but could be worth a try. Also, please check Intel(R) Vtune Amplifier https://software.intel.com/en-us/intel-vtune-amplifier-xe - you can get an evaluation version to try it out. The following link could be worth checking as well: http://stackoverflow.com/questions/5132628/profiling-opencl-kernels

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

Reply