Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Intel OpenCL SDK 2013 debugger - "-g -s" Build option

$
0
0

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 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>