<?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 Glad the issue is solved. in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952390#M2016</link>
    <description>Glad the issue is solved.

Your assumptions regarding pfn_notify == NULL, user_data != NULL case look reasonable. I will submit a ticket after reproducing.

Thanks,
Yuri</description>
    <pubDate>Mon, 22 Jul 2013 07:27:08 GMT</pubDate>
    <dc:creator>Yuri_K_Intel</dc:creator>
    <dc:date>2013-07-22T07:27:08Z</dc:date>
    <item>
      <title>clGetProgramBuildInfo returns CL_BUILD_NONE</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952386#M2012</link>
      <description>&lt;P&gt;We have an OpenCL program that works fine on my OS X machine. We just set up a machine with a Xeon Phi and Intel MPSS. However, even when not using the Phi but the Xeon CPU, the CL_PROGRAM_BUILD_STATUS we get is CL_BUILD_NONE.&lt;/P&gt;
&lt;P&gt;Unfortunately, we cannot find any documentation on what might cause CL_BUILD_NONE. Do you have any suggestion on how to debug this?&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;
&lt;P&gt;Versions:&lt;/P&gt;
&lt;P&gt;[bash]&lt;BR /&gt;[@memphis:~] $ cat /etc/SuSE-release&amp;nbsp;&lt;BR /&gt;SUSE Linux Enterprise Server 11 (x86_64)&lt;BR /&gt;VERSION = 11&lt;BR /&gt;PATCHLEVEL = 2&lt;/P&gt;
&lt;P&gt;[@memphis:~] $ uname -a&lt;BR /&gt;Linux memphis 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;[@memphis:~] 1 $ rpm -qa |grep intel&lt;BR /&gt;intel-mic-2.1.6720-15.suse&lt;BR /&gt;intel-mic-mpm-2.1.6720-15.suse&lt;BR /&gt;opencl-1.2-intel-mic-3.0.67279-1&lt;BR /&gt;intel-mic-sysmgmt-2.1.6720-15.suse&lt;BR /&gt;intel-mic-kmod-2.1.6720-15.3.0.13.0.suse&lt;BR /&gt;intel-mic-gdb-2.1.6720-15.suse&lt;BR /&gt;intel-mic-flash-2.1.386-3.suse&lt;BR /&gt;intel-mic-cdt-2.1.6720-15.suse&lt;BR /&gt;opencl-1.2-intel-devel-3.0.67279-1&lt;BR /&gt;intel-mic-micmgmt-2.1.6720-15.3.0.13.0.suse&lt;BR /&gt;opencl-1.2-intel-cpu-3.0.67279-1&lt;BR /&gt;intel-mic-gpl-2.1.6720-15.suse&lt;BR /&gt;intel-mic-crashmgr-2.1.6720-15.suse&lt;BR /&gt;[/bash]&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 12:33:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952386#M2012</guid>
      <dc:creator>Markus_Dreseler</dc:creator>
      <dc:date>2013-07-17T12:33:51Z</dc:date>
    </item>
    <item>
      <title>Hi Markus,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952387#M2013</link>
      <description>Hi Markus,

What happens if you perform the following command:
ioc64 -cmd=build -input=any_opencl_kernel.cl

Thanks,
Yuri</description>
      <pubDate>Wed, 17 Jul 2013 14:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952387#M2013</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-07-17T14:03:31Z</dc:date>
    </item>
    <item>
      <title>Hi Yuri,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952388#M2014</link>
      <description>&lt;P&gt;Hi Yuri,&lt;/P&gt;
&lt;P&gt;thanks for the tip - I wasn't aware of that. However, ioc64 seems to build the kernel fine:&lt;/P&gt;
&lt;P&gt;[bash]&lt;BR /&gt;[@memphis:~/logreg] 1 $ ioc64 -cmd=build -input=reduce.cl &lt;BR /&gt;&lt;BR /&gt;Setting target instruction set architecture to: Default&lt;BR /&gt;Intel OpenCL CPU device was found!&lt;BR /&gt;Device name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz&lt;BR /&gt;Device version: OpenCL 1.2 (Build 67279)&lt;BR /&gt;Device vendor: Intel(R) Corporation&lt;BR /&gt;Device profile: FULL_PROFILE&lt;BR /&gt;Compilation started&lt;BR /&gt;Compilation done&lt;BR /&gt;Linking started&lt;BR /&gt;Linking done&lt;BR /&gt;Kernel &amp;lt;reduce&amp;gt; was successfully vectorized&lt;BR /&gt;Done.&lt;BR /&gt;Build succeeded!&lt;BR /&gt;[/bash]&lt;/P&gt;
&lt;P&gt;I build the kernel using the following commands:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;BR /&gt;*program = clCreateProgramWithSource(context, 1, (const char **) &amp;amp;cSourceCL, &amp;amp;program_length, &amp;amp;ret);&lt;BR /&gt;clBuildProgram(*program, 0, NULL, opts.str().c_str(), NULL, &amp;amp;ret);&lt;BR /&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;Leaving out the opts doesn't change anything. I also added a syntax error to the CL code - it doesn't get parsed. If there is any more information I can give you to help, let me know. I didn't want to paste my whole source code here. ;)&lt;/P&gt;
&lt;P&gt;Also, adding a device list to the clBuildProgram doesn't help.&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 11:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952388#M2014</guid>
      <dc:creator>Markus_Dreseler</dc:creator>
      <dc:date>2013-07-21T11:44:00Z</dc:date>
    </item>
    <item>
      <title>Found it. I am not sure why I</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952389#M2015</link>
      <description>&lt;P&gt;Found it. I am not sure why I had &amp;amp;ret (cl_int return value) as the last parameter instead of having it as the return value of clBuildProgram. Moving it and setting the last parameter to NULL fixes the problem.&lt;/P&gt;
&lt;P&gt;I do understand why this problem occured - apparently the compiler / the OpenCL libraries understood that I wanted to use pfn_notify and asynchronously build my kernel. I am, however, not sure if this behavior is fully conformant to the OpenCL documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If pfn_notify is NULL, clBuildProgram does not return until the build has completed.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In my code, the pfn_notify argument was actually NULL, however user_data was (erroneously) not. While my code didn't make any sense, I believe that user_data should be ignored when pfn_notify is NULL.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 11:57:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952389#M2015</guid>
      <dc:creator>Markus_Dreseler</dc:creator>
      <dc:date>2013-07-21T11:57:25Z</dc:date>
    </item>
    <item>
      <title>Glad the issue is solved.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952390#M2016</link>
      <description>Glad the issue is solved.

Your assumptions regarding pfn_notify == NULL, user_data != NULL case look reasonable. I will submit a ticket after reproducing.

Thanks,
Yuri</description>
      <pubDate>Mon, 22 Jul 2013 07:27:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952390#M2016</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-07-22T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Hi, do you test your kernel</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952391#M2017</link>
      <description>&lt;P&gt;Hi, do you test your kernel now?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2013 06:44:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952391#M2017</guid>
      <dc:creator>JLuna5</dc:creator>
      <dc:date>2013-07-23T06:44:02Z</dc:date>
    </item>
    <item>
      <title>Could you rephrase your</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952392#M2018</link>
      <description>&lt;P&gt;Could you rephrase your question, please? The kernel works now, if that is what you mean.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2013 18:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetProgramBuildInfo-returns-CL-BUILD-NONE/m-p/952392#M2018</guid>
      <dc:creator>Markus_Dreseler</dc:creator>
      <dc:date>2013-07-23T18:12:34Z</dc:date>
    </item>
  </channel>
</rss>

