OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

what means of \x96g in the topic of Enabling Debugging in OpenCL™ Runtime

Sen_L_Intel
Employee
378 Views

in the development documents,Enabling Debugging in OpenCL™ Runtime (https://software.intel.com/en-us/node/539339), there is a step like: Add the \x96g flag to the build options string parameter in the clBuildProgram function. what means of the "\x96g", it's a unicode, or something else? if it's a unicode, it means "Grave Accent", which doesn't make sense.

and more, in the following, \x93-g -s \\x93<path_to_opencl_source_file>\\x94\x94, might you please give an exact example for this?

thanks,

-Edward

0 Kudos
2 Replies
Uri_L_Intel
Employee
378 Views

Hi Edward,

There is a typo in the user guide, the right example should be:

err = clBuildProgram(
          g_program, 
          0, 
          NULL, 
          “-g -s \”<path_to_opencl_source_file>\””, 
          NULL, 
          NULL);

For example:

err = clBuildProgram(m_program_cpu, 0, NULL, "-g -s \"C:\\folderA\\folderB\\program.cl\"", NULL, NULL);

where "C:\folderA\FolderB\program.cl" is the file with the kernel code on which you've put the breakpoint in the IDE.

We'll fix the typo, thanks!

Uri

0 Kudos
Sen_L_Intel
Employee
378 Views

it's very helpful.

thanks a lot

-Edward

0 Kudos
Reply