[IMX8MP] Debug OpenCL using VivanteIDE5.4 on hardware does NOT hit breakpoint in OpenCL kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[IMX8MP] Debug OpenCL using VivanteIDE5.4 on hardware does NOT hit breakpoint in OpenCL kernel

780 Views
dteng
Contributor I

I'm trying to debug OpenCL kernel using VivanteIDE5.4. The board is running Yocto BSP version 5.15.5 recently released. I was able to setup the IDE so that the sample project - cl_multi_context can be built successfully and was able to launch debug so that the problem breaks at the main function. My issue was that the program will never go into the OpenCL during debug single stepping.

The things I've tried:

  • Turns on "Generate debug information (-g) in the "Cross OpenCL Compiler" setting, following the steps in the Vivante_IDE_User_guide.pdf
  • Set Default work-item for new breakpoints to be 0,0,0

Screenshot from 2022-05-19 13-10-08.png

After doing all these, the program still simply doesn't go into the kernel while debugging. In fact, I wasn't able to set breakpoint in the kernel source code (mathop.cl). When I examine the vdb item on left, it doesn't include any Context items which is showing in the images included in the Vivante_IDE_User_guide.pdf

Anyone has any idea what's going on?

0 Kudos
Reply
0 Replies