<?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 Juan, in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Random-Numbers-in-OpenCL-CPU-kernel/m-p/1180681#M6703</link>
    <description>&lt;P&gt;The &lt;A href="https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_C.html"&gt;OpenCL standard&lt;/A&gt; doesn't provide a built-in function to generate pseudorandom numbers. There are several ways to solve the problem, and for example, you can generate an array of random numbers on a host and pass the pointer to the array to a kernel, or, alternatively, use libraries like clRNG that provides streams of random numbers from the host. There are a lot of scientific papers and libraries that might also solve the problem in another way, but the selection will depend on your requirements for them. Unfortunately, I am not able to suggest any of them.&lt;/P&gt;&lt;P&gt;- Andrey&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 12:13:56 GMT</pubDate>
    <dc:creator>Andrey_P_Intel</dc:creator>
    <dc:date>2019-10-23T12:13:56Z</dc:date>
    <item>
      <title>Random Numbers in OpenCL CPU kernel.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Random-Numbers-in-OpenCL-CPU-kernel/m-p/1180680#M6702</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new OpenCL developer.&amp;nbsp;I'm trying to solve a problem using a genetic algorithm and&amp;nbsp;a very importan part of this kind of heuristic algorithms is the randomness. To solve my problem&amp;nbsp;I need to generate&amp;nbsp;randomly&amp;nbsp;an&amp;nbsp;initial population and then some genetic operators will be selected in a random way too. &amp;nbsp;I want to solve my problem using heterogeneous computing, but the issue is that I cannot find a function to generate random numbers in the&amp;nbsp;GPU. I was thinking that will be useful&amp;nbsp;put this work into&amp;nbsp;a&amp;nbsp;CPU kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an allowed&amp;nbsp;OpenCL function to generate random numbers in a kernel where the target is the CPU?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M.C Juan Garcia.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Random-Numbers-in-OpenCL-CPU-kernel/m-p/1180680#M6702</guid>
      <dc:creator>Juan_G_1</dc:creator>
      <dc:date>2019-10-16T17:55:00Z</dc:date>
    </item>
    <item>
      <title>Juan,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Random-Numbers-in-OpenCL-CPU-kernel/m-p/1180681#M6703</link>
      <description>&lt;P&gt;The &lt;A href="https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_C.html"&gt;OpenCL standard&lt;/A&gt; doesn't provide a built-in function to generate pseudorandom numbers. There are several ways to solve the problem, and for example, you can generate an array of random numbers on a host and pass the pointer to the array to a kernel, or, alternatively, use libraries like clRNG that provides streams of random numbers from the host. There are a lot of scientific papers and libraries that might also solve the problem in another way, but the selection will depend on your requirements for them. Unfortunately, I am not able to suggest any of them.&lt;/P&gt;&lt;P&gt;- Andrey&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:13:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Random-Numbers-in-OpenCL-CPU-kernel/m-p/1180681#M6703</guid>
      <dc:creator>Andrey_P_Intel</dc:creator>
      <dc:date>2019-10-23T12:13:56Z</dc:date>
    </item>
  </channel>
</rss>

