- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are using Intel FPGA OpenCL SDK 21.1.
We cannot successfully set a breakpoint in the kernel when using the emulator and GDB. The breakpoint we set is never hit.
We installed GCC 7.2 as was specified in the instructions and we managed to build/run the emulated kernel.
We used the following instructions to setup a breakpoint:
“To run your kernel in the debugger:
During program execution, the debugger cannot step from the host code to the kernel code. You must set a breakpoint before the actual kernel invocation by adding these lines:
break <your_kernel>
This line sets a breakpoint before the kernel.
continue
If you have not begun debugging your host, then type start instead.
The debugger does not recognize kernel names until the host actually loads the kernel functions. As a result, the debugger generates the following warning for the breakpoint you set before the execution of the first kernel:
Function "<your_kernel>" not defined.
Make breakpoint pending on future shared library load? (y or [n])
Answer y. After initial program execution, the debugger recognizes the function and variable names, and line number references for the duration of the session.”
This problem can be reproduced on the vector add example provided with the SDK. We are using Centos 7.9.
Is there a known problem with debugging emulated kernels on OpenCL SDK 21.1? Do we need to use a specific GDB version? Any other ideas what could be the problem?
Thx
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @OS5,
Thank you for posting in Intel community forum and hope all is well.
Mind if I asked did the emulation complication successfully to generate the aocx files?
And does it work previously? Reason asking is openCL are currently not fully tested/supported in CentOS 7.9.
By any chances do you have another OS that you can try on?
Full list of supported OS can be found here.
Hope to hear from you soon.
Best Wishes
BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @BoonBengT_Intel ,
The emulation compilation completes successfully. The generated aocx file was successfully used in emulation (it produced correct results).
Debugging emulated kernels used to work in the past, in another version of OpenCL SDK but its been a while (a couple of years?) and I can not remember the OpenCL SDK version number nor the OS we used it on in the past.
I will see if I can install the SDK on another OS. Can you please send the supported OS list. The link is missing from your post.
Regards,
OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @OS5,
As there is no further clarification on this thread, it will be transitioned to community support for further help on doubts in this thread.
Thanks for your questions and as always pleasure having you here.
Best Wishes
BB
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page