<?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 Reporting build errors in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971039#M2385</link>
    <description>&lt;P&gt;&amp;nbsp; Is there a way to report compile errors for the kernels? cl::Program::build() simply returns CL_BUILD_PROGRAM_FAILURE which doesn't give any indication where the errors are.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2012 05:25:08 GMT</pubDate>
    <dc:creator>A_Z_</dc:creator>
    <dc:date>2012-12-12T05:25:08Z</dc:date>
    <item>
      <title>Reporting build errors</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971039#M2385</link>
      <description>&lt;P&gt;&amp;nbsp; Is there a way to report compile errors for the kernels? cl::Program::build() simply returns CL_BUILD_PROGRAM_FAILURE which doesn't give any indication where the errors are.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 05:25:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971039#M2385</guid>
      <dc:creator>A_Z_</dc:creator>
      <dc:date>2012-12-12T05:25:08Z</dc:date>
    </item>
    <item>
      <title>You can get the build log by</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971040#M2386</link>
      <description>You can get the build log by calling cl::Program::getInfo and passing the CL_PROGRAM_BUILD_LOG param. Have you tried that? Or you can use the KernelBuilder to verify if your kernel has any errors, if you are using the Intel OpenCL SDK.

Thanks,
Raghu</description>
      <pubDate>Fri, 21 Dec 2012 06:35:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971040#M2386</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-12-21T06:35:48Z</dc:date>
    </item>
    <item>
      <title>cl::Program::getBuildInfo was</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971041#M2387</link>
      <description>cl::Program::getBuildInfo was what I was looking for. Thanks!

 [cpp]
  result = program.build(devices,NULL,NULL,NULL);
  std::string buildLog =
    program.getBuildInfo&amp;lt;&lt;CL_PROGRAM_BUILD_LOG&gt;CL_PROGRAM_BUILD_LOG&amp;gt;(devices[0]);
  if(result != CL_SUCCESS)
  {
    printf("### Kernel compile log ###\n%s\n",buildLog.c_str());
    exit(result);
  }
[/cpp]&lt;/CL_PROGRAM_BUILD_LOG&gt;</description>
      <pubDate>Thu, 27 Dec 2012 18:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reporting-build-errors/m-p/971041#M2387</guid>
      <dc:creator>A_Z_</dc:creator>
      <dc:date>2012-12-27T18:05:00Z</dc:date>
    </item>
  </channel>
</rss>

