<?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 Setting up my code to use the debugger in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820568#M1077</link>
    <description>It's working! You have no idea how happy Iwas to see that breakpoint get hit in my kernel for the first time. I am going to be so much more productive now that I can debug.</description>
    <pubDate>Thu, 17 May 2012 23:14:41 GMT</pubDate>
    <dc:creator>mflamer</dc:creator>
    <dc:date>2012-05-17T23:14:41Z</dc:date>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820563#M1072</link>
      <description>Hi, I keep getting an error when trying to build my cl::Program using the following options&lt;BR /&gt;"-g -s Kernels\\\\BCurveGPU.cl". The error is "Invalid option: -s". Can anyone provide me an example of exactly how to do this correctly? I have verified that I am getting the correct intel platform and device from the system. Thanks! I'm excited to use the debugger finally.</description>
      <pubDate>Thu, 17 May 2012 15:54:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820563#M1072</guid>
      <dc:creator>mflamer</dc:creator>
      <dc:date>2012-05-17T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820564#M1073</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you give some more details, particularly what other params you are passing to clBuildProgram() and how you are creating the program object?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Thu, 17 May 2012 18:07:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820564#M1073</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-05-17T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820565#M1074</link>
      <description>&lt;P&gt;Raghu,&lt;BR /&gt;I'm using the C++ cl:: classes. I have removed all other build options except for "-g -s" and it stillgives me the sameCL_INVALID_BUILD_OPTIONS"Invalid option: -s". If for some reason I was not getting the correct context, it seems like it would give the error for -g also, which it is not. I can send my entire .sln if you like but it has many files. Can you send me an example of a .cpp file where you prepare for debugging? It's not entirely clear to me how to specify the path correctly.I really appreciate your help. I've spent hours on this with no success.&lt;BR /&gt;&lt;BR /&gt;void CBCurve::InitCPUPrgm()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;cl_int clErr; &lt;/P&gt;&lt;P&gt;std::ifstream stream("kernels\\BCurveGPU.cl");&lt;/P&gt;&lt;P&gt;std::string sourceStringCPU(std::istreambuf_iterator&lt;CHAR&gt;(stream), (std::istreambuf_iterator&lt;CHAR&gt;()));&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/P&gt;&lt;P&gt;cl::Program::Sources sourceCPU(1, std::make_pair(sourceStringCPU.c_str(), sourceStringCPU.length()+1));&lt;/P&gt;&lt;P&gt;spBCrvPrgmCPU = new Program( pDM-&amp;gt;GetContext( CL_DEVICE_TYPE_CPU ), sourceCPU);//pDM is a singleton that provides contexts, devices, etc..&lt;/P&gt;&lt;P&gt;std::vector&lt;:DEVICE&gt; devices;&lt;/:DEVICE&gt;&lt;/P&gt;&lt;P&gt;devices.push_back( pDM-&amp;gt;GetDevice( CL_DEVICE_TYPE_CPU ) );&lt;/P&gt;&lt;P&gt;std::string options("-g -s");&lt;/P&gt;&lt;P&gt;//options += " -Dreal="; options += CLREALSTR;&lt;/P&gt;&lt;P&gt;//options += " -Dreal4="; options += CLREAL4STR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clErr = spBCrvPrgmCPU-&amp;gt;build( devices, options.data());;&lt;/P&gt;&lt;P&gt;if(!clErr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;spKFindSpans = new cl::Kernel( *spBCrvPrgmCPU, "FindSpans", &amp;amp;clErr );&lt;/P&gt;&lt;P&gt;spKEvalCurve = new cl::Kernel( *spBCrvPrgmCPU, "EvaluateCurve", &amp;amp;clErr );&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;std::string log = spBCrvPrgmCPU-&amp;gt;getBuildInfo&lt;CL_PROGRAM_BUILD_LOG&gt;(pDM-&amp;gt;GetDevice( CL_DEVICE_TYPE_CPU ), &amp;amp;clErr);&lt;/CL_PROGRAM_BUILD_LOG&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 18:40:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820565#M1074</guid>
      <dc:creator>mflamer</dc:creator>
      <dc:date>2012-05-17T18:40:56Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820566#M1075</link>
      <description>I should also mention that if I only specify "-g" as the build options, the program compiles correctly. I also can't seem to get printf() to do anything. This may be unrelated but I thought I should mention it.</description>
      <pubDate>Thu, 17 May 2012 18:44:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820566#M1075</guid>
      <dc:creator>mflamer</dc:creator>
      <dc:date>2012-05-17T18:44:57Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820567#M1076</link>
      <description>Ok, I think I solved this. The problem is that the AMD Platform also was returning a device for the Intel CPU! I was not expecting this. I assumed if my device was the CPU I was good to go. Now I just need to get the path to my .cl specified correctly and I'm in business. Is this the correct format? Thanks.&lt;BR /&gt;"-g -s &lt;&gt;"&lt;/&gt;</description>
      <pubDate>Thu, 17 May 2012 22:48:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820567#M1076</guid>
      <dc:creator>mflamer</dc:creator>
      <dc:date>2012-05-17T22:48:19Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820568#M1077</link>
      <description>It's working! You have no idea how happy Iwas to see that breakpoint get hit in my kernel for the first time. I am going to be so much more productive now that I can debug.</description>
      <pubDate>Thu, 17 May 2012 23:14:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820568#M1077</guid>
      <dc:creator>mflamer</dc:creator>
      <dc:date>2012-05-17T23:14:41Z</dc:date>
    </item>
    <item>
      <title>Setting up my code to use the debugger</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820569#M1078</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am glad you were able to solve the issue. If you have further questions, please feel free to let us know and we'd be happy to help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Mon, 21 May 2012 16:10:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Setting-up-my-code-to-use-the-debugger/m-p/820569#M1078</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-05-21T16:10:54Z</dc:date>
    </item>
  </channel>
</rss>

