<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to Launch Debugger in VS2015 running OpenCL Samples in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088632#M4864</link>
    <description>&lt;P&gt;I've downloaded and successfully run the code samples from the Intel OpenCL website under "Release" configuration.&lt;/P&gt;

&lt;P&gt;(for example, Sobel, CapsBasic, and others).&lt;/P&gt;

&lt;P&gt;So, I'm confident that my SDK/drivers setup is mostly working.&lt;/P&gt;

&lt;P&gt;However, I'm not able to launch these examples in "debug" mode (to set breakpoints, step through code). &amp;nbsp;When I run with debug, I am told that a dependant dll is missing. &amp;nbsp;Here is the full output from a debug/win32 session when I click "Local Windows Debugger":&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;'CapsBasic.exe' (Win32): Loaded 'C:\_CVWork\OpenCL\intel_ocl_caps_basic_win\CapsBasic\Win32\Debug\CapsBasic.exe'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\OpenCL.dll'. Cannot find or open the PDB file.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
&lt;STRONG&gt;The program '[11500] CapsBasic.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.&lt;/STRONG&gt;&lt;/PRE&gt;

&lt;P&gt;To clarify, I do have the API debug options set in the Code-Builder-&amp;gt;Open CL Debugger-&amp;gt;Options... window ("Enable OpenCL kernel debugging for CPU device" box is checked, as is "Enable remote OpenCL kernel debugging for GPU device").&lt;/P&gt;

&lt;P&gt;Appreciate any insight on how to get breakpoints / debug runs working with the sample code using VS2015.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 17:06:39 GMT</pubDate>
    <dc:creator>Bradley_C_Intel</dc:creator>
    <dc:date>2016-11-16T17:06:39Z</dc:date>
    <item>
      <title>Unable to Launch Debugger in VS2015 running OpenCL Samples</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088632#M4864</link>
      <description>&lt;P&gt;I've downloaded and successfully run the code samples from the Intel OpenCL website under "Release" configuration.&lt;/P&gt;

&lt;P&gt;(for example, Sobel, CapsBasic, and others).&lt;/P&gt;

&lt;P&gt;So, I'm confident that my SDK/drivers setup is mostly working.&lt;/P&gt;

&lt;P&gt;However, I'm not able to launch these examples in "debug" mode (to set breakpoints, step through code). &amp;nbsp;When I run with debug, I am told that a dependant dll is missing. &amp;nbsp;Here is the full output from a debug/win32 session when I click "Local Windows Debugger":&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;'CapsBasic.exe' (Win32): Loaded 'C:\_CVWork\OpenCL\intel_ocl_caps_basic_win\CapsBasic\Win32\Debug\CapsBasic.exe'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\OpenCL.dll'. Cannot find or open the PDB file.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'CapsBasic.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
&lt;STRONG&gt;The program '[11500] CapsBasic.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.&lt;/STRONG&gt;&lt;/PRE&gt;

&lt;P&gt;To clarify, I do have the API debug options set in the Code-Builder-&amp;gt;Open CL Debugger-&amp;gt;Options... window ("Enable OpenCL kernel debugging for CPU device" box is checked, as is "Enable remote OpenCL kernel debugging for GPU device").&lt;/P&gt;

&lt;P&gt;Appreciate any insight on how to get breakpoints / debug runs working with the sample code using VS2015.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 17:06:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088632#M4864</guid>
      <dc:creator>Bradley_C_Intel</dc:creator>
      <dc:date>2016-11-16T17:06:39Z</dc:date>
    </item>
    <item>
      <title>To enable debugging you need</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088633#M4865</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;To enable debugging you need to add "-g -s &amp;lt;path to OpenCL kernel&amp;gt;" as described here:&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&lt;A href="https://software.intel.com/en-us/node/539339" target="_blank"&gt;https://software.intel.com/en-us/node/539339&lt;/A&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;For example:&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;clBuildProgram(ocl-&amp;gt;program, 1, &amp;amp;ocl-&amp;gt;device, "-g -s \"C:/Users/me/Desktop/OCLtest/debugtest/debugtest/template.cl\"", NULL, NULL);&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;A nice feature of the Code Builder integration in Visual Studio is that you can start a new project with everything set up for debugging -- so the above will be auto-generated for you.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&lt;IMG alt="" src="https://community.intel.com/file/530888/download" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:28:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088633#M4865</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-11-17T08:28:55Z</dc:date>
    </item>
    <item>
      <title>Hi Jeff,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088634#M4866</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;

&lt;P&gt;I have followed your steps of creating the new solution in Debug mode.&lt;/P&gt;

&lt;P&gt;Even after that I am not able to hit breakpoint in debug mode.&lt;/P&gt;

&lt;P&gt;I have attached my host code file for your reference.&lt;/P&gt;

&lt;P&gt;wrt to adding the path to the clbuildprogram, in some examples it says the extension should &amp;nbsp;be in txt and in your case the extension is .cl&lt;/P&gt;

&lt;P&gt;Can you please help me in this.&lt;/P&gt;

&lt;P&gt;I am using&amp;nbsp;&lt;/P&gt;

&lt;P&gt;- Microsoft Visual Studio 2015&lt;/P&gt;

&lt;P&gt;- Intel Code Builder version 6.1.0.1600&lt;/P&gt;

&lt;P&gt;(Somehow I feel their is a issue in this version for hitting breakpoint in kernel, as I have tried all possible solutions)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:33:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088634#M4866</guid>
      <dc:creator>mohammed_f_</dc:creator>
      <dc:date>2016-11-22T15:33:09Z</dc:date>
    </item>
    <item>
      <title>After changing your</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088635#M4867</link>
      <description>&lt;P&gt;After changing your&amp;nbsp;clBuildProgram path (line 586 in OpenCLProject3.cpp) to where the template.cl kernel is found on my system&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;err = clBuildProgram(ocl-&amp;gt;program, 1, &amp;amp;ocl-&amp;gt;device, " -g -s \"C:\\path\\to\\kernel\\files\\Template.cl\"", NULL, NULL);&lt;/PRE&gt;

&lt;P&gt;your source worked for me with this change: &amp;nbsp;(line 783 in OpenCLProject3.cpp)&lt;/P&gt;

&lt;P&gt;from&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;cl_device_type deviceType = CL_DEVICE_TYPE_GPU;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;cl_device_type deviceType = CL_DEVICE_TYPE_CPU;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;More info on debug setup can be found at &amp;nbsp;https://software.intel.com/en-us/node/539337. &amp;nbsp;From there:&lt;/P&gt;

&lt;H3 class="NoteTipHead" style="box-sizing: border-box; line-height: 1.06667em; font-family: intel-clear, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial; color: rgb(8, 96, 168); padding-top: 5px; text-transform: uppercase;"&gt;NOTE&lt;/H3&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-top: 2px; margin-bottom: 2px; line-height: 1.4; max-width: 100%; width: auto; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;Debugging is available only for CPU device. If the code should run on Intel Graphics, debug on CPU device during development phase, then change the target device.&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-top: 2px; margin-bottom: 2px; line-height: 1.4; max-width: 100%; width: auto; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-top: 2px; margin-bottom: 2px; line-height: 1.4; max-width: 100%; width: auto; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;Does this change let you stop at a breakpoint and step through your kernel code?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:11:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-Launch-Debugger-in-VS2015-running-OpenCL-Samples/m-p/1088635#M4867</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-11-22T21:11:11Z</dc:date>
    </item>
  </channel>
</rss>

