<?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 openCL problem in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/openCL-problem/m-p/1197689#M6809</link>
    <description>&lt;P&gt;Hey guys.&lt;/P&gt;
&lt;P&gt;I have a little doubt and I really need your help.&lt;BR /&gt;My problem is this:&lt;BR /&gt;I create an opencl buffer as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;d_sample = clCreateBuffer(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, &lt;BR /&gt;sizeof(float) * (1 * 3 * 224 * 224), NULL, &amp;amp;status);&lt;BR /&gt;checkError(status, "Failed to create buffer d_sample");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I have 1 array full of values like my_array [99999]&lt;BR /&gt;And I want to pass these values from my array to the buffer.&lt;/P&gt;
&lt;P&gt;How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 16:18:54 GMT</pubDate>
    <dc:creator>SPere43</dc:creator>
    <dc:date>2020-08-05T16:18:54Z</dc:date>
    <item>
      <title>openCL problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/openCL-problem/m-p/1197689#M6809</link>
      <description>&lt;P&gt;Hey guys.&lt;/P&gt;
&lt;P&gt;I have a little doubt and I really need your help.&lt;BR /&gt;My problem is this:&lt;BR /&gt;I create an opencl buffer as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;d_sample = clCreateBuffer(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, &lt;BR /&gt;sizeof(float) * (1 * 3 * 224 * 224), NULL, &amp;amp;status);&lt;BR /&gt;checkError(status, "Failed to create buffer d_sample");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I have 1 array full of values like my_array [99999]&lt;BR /&gt;And I want to pass these values from my array to the buffer.&lt;/P&gt;
&lt;P&gt;How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:18:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/openCL-problem/m-p/1197689#M6809</guid>
      <dc:creator>SPere43</dc:creator>
      <dc:date>2020-08-05T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: openCL problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/openCL-problem/m-p/1198067#M6813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, take a look at example, which is coming with Intel(R) OpenCL SDK in CPU/GPU Template.&lt;/P&gt;
&lt;P&gt;Also, take a look at &lt;A href="https://www.khronos.org/opencl/resources" target="_self"&gt;OpenCL documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Sergey&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:40:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/openCL-problem/m-p/1198067#M6813</guid>
      <dc:creator>Sergey_I_Intel1</dc:creator>
      <dc:date>2020-08-06T18:40:54Z</dc:date>
    </item>
  </channel>
</rss>

