- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to debug an OpenCL kernel using the Intel OpenCL SDK 2013 debugger integrated in VS2010 and Windows 7 64-bit.
The documentation states I have to pass "-g -s
" as an option to clBuildProgram() but this results in a CL_BUILD_ERROR error
I've tried these two options:
1. m_clStatus = ::clBuildProgram(m_clProgram,
1,
&m_clDeviceId,
"-g -s m:/kernels/My_kernel.cl",
NULL, NULL);
2. m_clStatus = ::clBuildProgram(m_clProgram,
0,
NULL,
"-g -s m:/kernels/My_kernel.cl",
NULL, NULL);
Is it correct?
The compilation succeed if the target device is IGPU.
Thanks,
Micha
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The fourth option to clBuildProgram() specifies the build options. So you should be passing "-g -s" and you don't need the "m:/kernels/My_kernel.cl" string.
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
Do you mean
m_clStatus = ::clBuildProgram(m_clProgram,
1,
&m_clDeviceId,
"-g -s",
NULL, NULL);
This command returns error code -43 (= CL_INVALID_BUILD_OPTIONS).
Thanks,
Micha
- 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
Ah, sorry. Yuri is correct you do need the complete path to your kernel. Please post if you are still having trouble after following his suggestions.
Thanks,
Raghu

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page