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