<?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: Passing random number streams (state) to subroutines in For in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894898#M10794</link>
    <description>&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Hello Henrik,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;The standard MKL pakage contains examples for the mostly part of MKL functionality.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Please look at the following folder ..examplesvslf. You can find there a lot of Fortran examples about VSL functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Gennady&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2008 12:25:51 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2008-09-01T12:25:51Z</dc:date>
    <item>
      <title>Passing random number streams (state) to subroutines in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894897#M10793</link>
      <description>&lt;BR /&gt;I can compile and run Fortran 90 code with MKL random number generators. I come from a Fortran 77 background , and I am struggling to figure out how to pass the MKL random number generator info to subroutines. I want to setup the random number generator at the beginning of the program and then I have several subroutines that generate random numbers. Is there any example documentation anywhere to show how this is done (or and example program)? I could not find any in the MKL documentation.&lt;BR /&gt;&lt;BR /&gt; - Henrik&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Aug 2008 15:58:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894897#M10793</guid>
      <dc:creator>Henrik_S_</dc:creator>
      <dc:date>2008-08-29T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894898#M10794</link>
      <description>&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Hello Henrik,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;The standard MKL pakage contains examples for the mostly part of MKL functionality.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Please look at the following folder ..examplesvslf. You can find there a lot of Fortran examples about VSL functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Gennady&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2008 12:25:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894898#M10794</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-09-01T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894899#M10795</link>
      <description>&lt;P&gt;&lt;FONT face="Verdana"&gt;In addition to VSL examples available in MKL installation package the example below also demonstrates how random number generation could be done in a function whose parameter is VSL random stream. First, we initialize VSL Random stream in usual way:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; include 'mkl_vsl.fi'&lt;BR /&gt; program MKL_VSL_TEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; USE MKL_VSL_TYPE&lt;BR /&gt; USE MKL_VSL&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; integer n&lt;BR /&gt; integer(kind=4) errcode&lt;BR /&gt; real(kind=8) a,sigma&lt;BR /&gt; real(kind=8) r(1000)&lt;BR /&gt; integer brng,method,seed&lt;BR /&gt; TYPE (VSL_STREAM_STATE) :: stream&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; n=1000&lt;BR /&gt; brng=VSL_BRNG_MCG31&lt;BR /&gt; method=VSL_METHOD_DGAUSSIAN_BOXMULLER&lt;BR /&gt; seed=1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; a=0.0&lt;BR /&gt; sigma=1.0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; errcode=vslnewstream( stream, brng, seed )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Verdana"&gt;Instead of direct call to VSL &lt;FONT face="Courier New"&gt;vdrnggaussian&lt;/FONT&gt; function we make call into its wrapper and pass stream and other generation parameters into the function:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; errcode=vslgaussian( stream, method, n, r, a, sigma )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Verdana"&gt;Computation is completed with de-allocation of system resources:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; errcode=vsldeletestream( stream )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; end program MKL_VSL_TEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Verdana"&gt;Finally, we define function &lt;FONT face="Courier New"&gt;vslgaussian&lt;/FONT&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; function vslgaussian( rstr, meth, nn, rr, aa, sig )&lt;BR /&gt; USE MKL_VSL_TYPE&lt;BR /&gt; USE MKL_VSL&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; TYPE (VSL_STREAM_STATE), intent(in) :: rstr&lt;BR /&gt; integer, intent(in) :: meth &lt;BR /&gt; integer(kind=4), intent(in) :: nn&lt;BR /&gt; real(kind=8), intent(out) :: rr(nn) &lt;BR /&gt; real(kind=8), intent(in) :: aa&lt;BR /&gt; real(kind=8), intent(in) :: sig &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; vslgaussian=vdrnggaussian( meth, rstr, nn, rr, aa, sig )&lt;BR /&gt; end function vslgaussian&lt;/FONT&gt;&amp;lt;
/P&amp;gt;
&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana"&gt;Please, let us know how this works for you. Thanks, Andrey&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:43:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894899#M10795</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2008-09-01T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894900#M10796</link>
      <description>&lt;BR /&gt;Andrey - &lt;B&gt;Thank You!!!&lt;/B&gt; This is exactly what I was looking for. I tested your example solution and it works for me.&lt;BR /&gt;&lt;BR /&gt; - Henrik&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2008 01:00:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894900#M10796</guid>
      <dc:creator>Henrik_S_</dc:creator>
      <dc:date>2008-09-02T01:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894901#M10797</link>
      <description>Hello Gennady,&lt;BR /&gt;thank you for your reply. I was aware of the examples directory and I made use of it to figure out the basics of generating MKL random numbers. I could, however, not find any examples on how to pass streams to subroutines and/or functions.Maybe I missed it. Andrey's post gave me what I needed.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt; - Henrik&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2008 01:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894901#M10797</guid>
      <dc:creator>Henrik_S_</dc:creator>
      <dc:date>2008-09-02T01:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894902#M10798</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please tell what command line instruction you would use to compile this program? I'm struggling a little with linking... Thanks!&lt;/P&gt;
&lt;P&gt;Guillaume&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2009 16:15:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894902#M10798</guid>
      <dc:creator>guillaume_c</dc:creator>
      <dc:date>2009-01-02T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894903#M10799</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Ok, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Please let me know:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;What is OS? Win, Lin or Mac OS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Is it ia32 or em64 system?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Static or dynamic?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;How about threading?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;--Gennady &lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2009 06:29:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894903#M10799</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-03T06:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894904#M10800</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Ok, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Please let me know:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;What is OS? Win, Lin or Mac OS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Is it ia32 or em64 system?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;Static or dynamic?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;How about threading?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: Tahoma; mso-bidi-font-family: 'Times New Roman';"&gt;--Gennady &lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm with Mac OS 10.5.6, and running a Core 2 Duo. I suppose that static linking will make computations faster as the library as to be loaded only one time, and not everytime it is called? I would like to have multi-threading enabled (but I'm not sure where and how this would be used in the sample code above). Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2009 14:54:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894904#M10800</guid>
      <dc:creator>guillaume_c</dc:creator>
      <dc:date>2009-01-12T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894905#M10801</link>
      <description>&lt;DIV style="margin:0px;"&gt;Is it 32bit or 64bit OS?&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2009 20:28:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894905#M10801</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-12T20:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894906#M10802</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Is it 32bit or 64bit OS?&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm not sure how I can check, but it looks 64 bits&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.apple.com/macosx/technology/64bit.html" target="_blank"&gt;http://www.apple.com/macosx/technology/64bit.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jan 2009 00:18:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894906#M10802</guid>
      <dc:creator>guillaume_c</dc:creator>
      <dc:date>2009-01-13T00:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894907#M10803</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/410926"&gt;guillaume_c&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please tell what command line instruction you would use to compile this program? I'm struggling a little with linking... Thanks!&lt;/P&gt;
&lt;P&gt;Guillaume&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;You can use following command line for building your example with MKL libraries (MacOS 64bits, Intel Compiler, static linking):&lt;BR /&gt;ifort -I$(PATH_TO_MKL_INCLUDE_FOLDER) your_source_name.f $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_intel_lp64.a $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_intel_thread.a $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_core.a $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_intel_lp64.a $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_intel_thread.a $(PATH_TO_MKL_LIB_EM64T_FOLDER)/libmkl_core.a -L$(PATH_TO_MKL_LIB_EM64T_FOLDER) -liomp5&lt;BR /&gt;&lt;BR /&gt;You can receive examples of build`s command lines by runningMKL examples. Go to examples folder, enter to one of subfolders and run make. Inside each makefile you can find short description of makefile`s parameters.&lt;BR /&gt;&lt;BR /&gt;Andrey&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 12:29:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894907#M10803</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2009-01-14T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894908#M10804</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I wish to use Intel Fortran Math Kernel Library for generating random vectors (numbers) of multivariance. I have Intel Fortran 10.x with the corresponding MKL installed on a Mac with Mac OS X 10.4 (Tiger 32 bit).I tried using many examples that I found on the net but none of them worked, including the one here! :(&lt;/P&gt;
&lt;P&gt;Now, the things I am interested in are the following.&lt;/P&gt;
&lt;P&gt;1. Does someone have a working sample code for a configuration like that of mine?&lt;/P&gt;
&lt;P&gt;2. Please let me know the commands ( meaning the list of library files and include files) to be compiled with it.&lt;/P&gt;
&lt;P&gt;I tried using the command list given in the previous post as&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: normal;"&gt;f&lt;/SPAN&gt;ort -I$/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include/ g.f /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_intel_lp64.a /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_intel_thread.a /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_core.a /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_intel_lp64.a /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_intel_thread.a /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal/libmkl_core.a -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/universal -liomp5&lt;/P&gt;
&lt;P&gt;but it it results in the following msg when I try to run a.out&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV&gt;dyld: Library not loaded: libiomp5.dylib&lt;/DIV&gt;
&lt;DIV&gt;Referenced from: /Users/harshey/Documents/phd_project/model/./a.out&lt;/DIV&gt;
&lt;DIV&gt;Reason: image not found&lt;/DIV&gt;
&lt;DIV&gt;Trace/BPT trap&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Help required urgently.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Yogesh&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 May 2009 18:18:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894908#M10804</guid>
      <dc:creator>ymharshe</dc:creator>
      <dc:date>2009-05-15T18:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing random number streams (state) to subroutines in For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894909#M10805</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/428418"&gt;ymharshe&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Yogesh,&lt;BR /&gt;I believe the linker adviser ( follow the link: &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=65510"&gt;http://software.intel.com/en-us/forums/showthread.php?t=65510&lt;/A&gt;) will helps you.&lt;BR /&gt;If not, please let us know.&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2009 13:47:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Passing-random-number-streams-state-to-subroutines-in-Fortran/m-p/894909#M10805</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-05-17T13:47:33Z</dc:date>
    </item>
  </channel>
</rss>

