<?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 Re: Persistance of random number generator state in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Persistance-of-random-number-generator-state/m-p/895446#M10861</link>
    <description>&lt;P&gt;VSLhas functions vslsavestreamf/vslloadstreamf for storing/restoring descriptive data of random stream to and from binary files. They may be very useful in time consuming Monte Carlo simulations.&lt;/P&gt;
&lt;P&gt;You also might want to use vslcopystream (or vslcopystreamstate) functions to store copy of the random stream (or its state) in memory.&lt;/P&gt;
&lt;P&gt;More details about storing/restoring random streams are available in MKL Manual and VSL Notes. I do not have all details regarding to your application; however, it appears that it is not required to hold random stream in a common block to maintain persistence as library service functionality mentioned above helps to do this.&lt;BR /&gt;Does it answer your question?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Andrey &lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2007 09:11:59 GMT</pubDate>
    <dc:creator>Andrey_N_Intel</dc:creator>
    <dc:date>2007-11-09T09:11:59Z</dc:date>
    <item>
      <title>Persistance of random number generator state</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Persistance-of-random-number-generator-state/m-p/895445#M10860</link>
      <description>I am used to old fashioned Fortran code where I saved the state of my random number generators by putting the current seed/state into a common block. Rather than run a bunch of tests, I would like to ask here how do I maintain persistance of the random number generators? I need to generate a large number of random numbers for Monte Carlo ray tracing, but the number of random numbers required for each ray is unknown ahead of time. In my legacy code, I just save the seed/state in a common block and call a random number generator from within the subroutine that makes the Monte Carlo decision and using the seed to get a new random number. Do the "streams" need to be maintained in a common block or passed through my chains of subroutine arguments in order to maintain persistance and independence of the random numbers?&lt;BR /&gt;&lt;BR /&gt;Thanks very much!&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:58:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Persistance-of-random-number-generator-state/m-p/895445#M10860</guid>
      <dc:creator>Thomas_H_4</dc:creator>
      <dc:date>2007-11-07T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Persistance of random number generator state</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Persistance-of-random-number-generator-state/m-p/895446#M10861</link>
      <description>&lt;P&gt;VSLhas functions vslsavestreamf/vslloadstreamf for storing/restoring descriptive data of random stream to and from binary files. They may be very useful in time consuming Monte Carlo simulations.&lt;/P&gt;
&lt;P&gt;You also might want to use vslcopystream (or vslcopystreamstate) functions to store copy of the random stream (or its state) in memory.&lt;/P&gt;
&lt;P&gt;More details about storing/restoring random streams are available in MKL Manual and VSL Notes. I do not have all details regarding to your application; however, it appears that it is not required to hold random stream in a common block to maintain persistence as library service functionality mentioned above helps to do this.&lt;BR /&gt;Does it answer your question?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Andrey &lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2007 09:11:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Persistance-of-random-number-generator-state/m-p/895446#M10861</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2007-11-09T09:11:59Z</dc:date>
    </item>
  </channel>
</rss>

