<?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: How to make random generator stream state global? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992830#M18099</link>
    <description>So glad we could help :-)

Bruce</description>
    <pubDate>Tue, 12 Apr 2005 06:25:32 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2005-04-12T06:25:32Z</dc:date>
    <item>
      <title>How to make random generator stream state global?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992828#M18097</link>
      <description>&lt;DIV&gt;Dear all,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;this might be trivial for the f90 wizards soI apologise in advance for my&lt;/DIV&gt;
&lt;DIV&gt;ignorance.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I want to use the MKL routine VDRNGUNIFORM to obtain vectors&lt;/DIV&gt;
&lt;DIV&gt;of random numbers. The problem is, how to make the state variable STREAM, which is initialised by calling VSLNEWSTREAM in a separate subroutine global, so that it can be accessed by VDRNGUNIFORM in its own&lt;/DIV&gt;
&lt;DIV&gt;routine. I cannot extend the argument listsof&lt;/DIV&gt;
&lt;DIV&gt;the wrapper subroutines in which the MKL routines are called because their&lt;/DIV&gt;
&lt;DIV&gt;format specification is prescribed by a project specification.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I tried to do this by common blocks in the wrapper routines:&lt;/DIV&gt;
&lt;DIV&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="3"&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="3"&gt;TYPE&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt; (VSL_STREAM_STATE),&lt;/FONT&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="3"&gt;POINTER&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt; :: stream&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;B&gt;&lt;FONT color="#0000ff" size="3"&gt;COMMON&lt;/FONT&gt;&lt;/B&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt; / randstate / stream&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;however, that results inthe followingcompiler error message&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;" &lt;FONT size="1"&gt;If a common-block-object is of a derived type, it must be of a sequence type"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;Any idea how to resolve this?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Karl&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2005 23:43:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992828#M18097</guid>
      <dc:creator>krieger</dc:creator>
      <dc:date>2005-04-05T23:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make random generator stream state global?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992829#M18098</link>
      <description>&lt;DIV&gt;Oops, a google search for a f90 beginners guide was all needed to resolve&lt;/DIV&gt;
&lt;DIV&gt;my question. Packing the declaration of stream in a module helped.&lt;/DIV&gt;
&lt;DIV&gt;Sorry for the trivial post... Time to outgrow from f77 ;-)&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2005 00:26:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992829#M18098</guid>
      <dc:creator>krieger</dc:creator>
      <dc:date>2005-04-06T00:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make random generator stream state global?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992830#M18099</link>
      <description>So glad we could help :-)

Bruce</description>
      <pubDate>Tue, 12 Apr 2005 06:25:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-random-generator-stream-state-global/m-p/992830#M18099</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2005-04-12T06:25:32Z</dc:date>
    </item>
  </channel>
</rss>

