<?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 clSetKernelArg arg_value as NULL object. in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798242#M748</link>
    <description>Hi Denis,&lt;BR /&gt;&lt;BR /&gt;According to the spec. you can pass the NULL pointer toas anargument if target parameter is a buffer.&lt;BR /&gt;&lt;P&gt;From the spec:&lt;BR /&gt;"If the argument is a buffer object, the arg_value pointer can be&lt;/P&gt;&lt;P&gt;NULL or point to a NULL value in which case a NULL value will be used as the value for the&lt;/P&gt;&lt;P&gt;argument declared as a pointer to __global or __constant memory in the kernel"&lt;BR /&gt;&lt;BR /&gt;We will try to reproduce the issue and update your accordingly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2011 15:50:45 GMT</pubDate>
    <dc:creator>Evgeny_F_Intel</dc:creator>
    <dc:date>2011-11-04T15:50:45Z</dc:date>
    <item>
      <title>clSetKernelArg arg_value as NULL object.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798241#M747</link>
      <description>&lt;PRE class="prettyprint"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;According OpenCL 1.1 specification clSetKernelArg &lt;VAR class="pdparam"&gt;arg_value&lt;/VAR&gt;&lt;CODE&gt; could be NULL object.&lt;/CODE&gt;&lt;BR /&gt;&lt;A href="http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clSetKernelArg.html" target="_blank"&gt;http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clSetKernelArg.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So, the construction (below) is valid: &lt;BR /&gt;&lt;BR /&gt;cl_mem null_buffer = NULL;&lt;BR /&gt;errid = clSetKernelArg(m_KernelContainer[kernelIdx], argIdx, sizeof(cl_mem), &amp;amp;null_buffer);&lt;BR /&gt;OclCheckError(errid);&lt;BR /&gt;&lt;BR /&gt;However, on Intel OpenCL SDK 1.5, I am keep getting error:&lt;BR /&gt;OpenCL Error : CL_INVALID_MEM_OBJECT&lt;BR /&gt;&lt;BR /&gt;I've tried same construction on Nvidia OpenCL 1.1, it works fine. no error at all.&lt;BR /&gt;Am I missing something or that could be a bug?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Denis&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2011 14:59:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798241#M747</guid>
      <dc:creator>dpshamonin</dc:creator>
      <dc:date>2011-11-04T14:59:24Z</dc:date>
    </item>
    <item>
      <title>clSetKernelArg arg_value as NULL object.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798242#M748</link>
      <description>Hi Denis,&lt;BR /&gt;&lt;BR /&gt;According to the spec. you can pass the NULL pointer toas anargument if target parameter is a buffer.&lt;BR /&gt;&lt;P&gt;From the spec:&lt;BR /&gt;"If the argument is a buffer object, the arg_value pointer can be&lt;/P&gt;&lt;P&gt;NULL or point to a NULL value in which case a NULL value will be used as the value for the&lt;/P&gt;&lt;P&gt;argument declared as a pointer to __global or __constant memory in the kernel"&lt;BR /&gt;&lt;BR /&gt;We will try to reproduce the issue and update your accordingly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 15:50:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798242#M748</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-11-04T15:50:45Z</dc:date>
    </item>
    <item>
      <title>clSetKernelArg arg_value as NULL object.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798243#M749</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;I've just recently checked this issue again with latest Intel 2012 x64 SDK.&lt;BR /&gt;It is still there!!!&lt;BR /&gt;&lt;BR /&gt;We need this feature sometimes, otherwise we have to make different kernels with different number of arguments to work around it. &lt;BR /&gt;&lt;BR /&gt;Could you please make a bug report and hopefully fix it for next release?&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-Denis&lt;BR /&gt;</description>
      <pubDate>Mon, 07 May 2012 11:58:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798243#M749</guid>
      <dc:creator>dpshamonin</dc:creator>
      <dc:date>2012-05-07T11:58:58Z</dc:date>
    </item>
    <item>
      <title>clSetKernelArg arg_value as NULL object.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798244#M750</link>
      <description>Hi Denis&lt;BR /&gt;&lt;P&gt;Thank you for your report. &lt;BR /&gt;This is a real bug. &lt;BR /&gt;We opened a ticket. It will be fixed in future releases...&lt;BR /&gt;Thanks, Shiri&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 12:19:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798244#M750</guid>
      <dc:creator>Shiri_M_Intel</dc:creator>
      <dc:date>2012-05-07T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Hello. Small advertisment: I</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798245#M751</link>
      <description>Hello. Small advertisment: I'm a guy from Russia, Moscow, Fitting Reality company.
We also need this feature sometimes.

The solution(small technical workaround) that can possible can help you:
1. You should insert AMD videocard in your system
2. Install AMD-APP-SDK-v2.7 for your system
3. You can remove your videocard from the system
4. Select Intel CPU from Amd OpenCL context "AMD Accelerated Parallel Processing" from your code. And do that you need.

It works fine and was tested for Windows x86/x64.

Problem is that you cannot simply install AMD-APP-SDK-v2.7 without having AMD videocard in your system.
Steps #1, and #3 need for you to have an AMD videocard, and have potentional possibility to insert it.</description>
      <pubDate>Thu, 01 Nov 2012 09:05:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetKernelArg-arg-value-as-NULL-object/m-p/798245#M751</guid>
      <dc:creator>Burlachenko_Konstant</dc:creator>
      <dc:date>2012-11-01T09:05:34Z</dc:date>
    </item>
  </channel>
</rss>

