<?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: use mkl_vsl module to generate random num in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864763#M7789</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/433393"&gt;ppthelion&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;Hi:&lt;BR /&gt; I'm trying to use mkl_vsl module to generate random num, what I did as follows:&lt;BR /&gt; First : I found a file name mkl_vsl.fi ,then I copy it to the %IA32% directory, 'ifort /c mkl_vsl.fi' then I got two mod file : mkl_vsl &amp;amp; mkl_vsl_type&lt;BR /&gt; second , follow is my program:&lt;BR /&gt;use mkl_vsl&lt;BR /&gt;use mkl_vsl_type&lt;BR /&gt;integer status !Error / status &lt;BR /&gt;integer brng !Index of generator to initialize stream &lt;BR /&gt;integer method !Method = 0 in case of uniform distribution &lt;BR /&gt;integer dimen !Initial condition of the stream &lt;BR /&gt;TYPE (VSL_STREAM_STATE) :: stream !Random stream&lt;BR /&gt;integer, PARAMETER :: nr = 1000 !Number of values required (whatever you want)&lt;BR /&gt;real gauss(nr)&lt;BR /&gt;real mean, sigma&lt;/P&gt;
&lt;P&gt;mean = 0.0&lt;BR /&gt;sigma = 1.0&lt;/P&gt;
&lt;P&gt;!SOBEL&lt;BR /&gt;method = VSL_METHOD_SGAUSSIAN_ICDF !NB - are different alternatives, but I found this worked well&lt;BR /&gt;brng = VSL_BRNG_SOBOL &lt;BR /&gt;dimen = 1 ! &amp;lt;== different values may be needed depending on application&lt;BR /&gt;gauss = 0.0&lt;BR /&gt;status = vslnewstream( stream, brng, dimen ) !Create new stream (SOBOL in this case&lt;BR /&gt;status = vsrnggaussian( method, stream, nr, gauss, mean, sigma ) &lt;BR /&gt;status = vsldeletestream( stream ) !Delete the stream&lt;/P&gt;
&lt;P&gt;!For alternate random types, substitute&lt;BR /&gt;! brng = VSL_BRNG_MT19937&lt;BR /&gt;! brng = VSL_BRNG_MRG32K3A&lt;BR /&gt;!NB: I found VSL_BRNG_MT19937 overall best for my applicat&lt;BR /&gt;end&lt;BR /&gt;But when I compile it ,the compiler showed 'error linker _vslnewstream; _vsrnggaussian; _vsldeletestream',but I could found these three functions in mkl_vsl.fi,why this happened?&lt;BR /&gt;Thanks for any answer!&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;are you building it in VS?  mkl_vsl.fi must be "visible" for compiler, and you provide that information via "Include directories" setting.&lt;BR /&gt;&lt;BR /&gt;In your case linker complains that it cannot see &lt;EM&gt;&lt;EM&gt;_vslnewstream; _vsrnggaussian; _vsldeletestream &lt;/EM&gt;&lt;/EM&gt;functions you used. Please set the *.lib files in your linker line(s).&lt;BR /&gt;&lt;BR /&gt;If you provide a bit more info on your environment and settings, then better (more accurate) help can be provided.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Dec 2009 00:41:53 GMT</pubDate>
    <dc:creator>ArturGuzik</dc:creator>
    <dc:date>2009-12-11T00:41:53Z</dc:date>
    <item>
      <title>use mkl_vsl module to generate random num</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864762#M7788</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; I'm trying to use mkl_vsl module to generate random num, what I did as follows:&lt;BR /&gt; First : I found a file name mkl_vsl.fi ,then I copy it to the %IA32% directory, 'ifort /c mkl_vsl.fi' then I got two mod file : mkl_vsl &amp;amp; mkl_vsl_type&lt;BR /&gt; second , follow is my program:&lt;BR /&gt;use mkl_vsl&lt;BR /&gt;use mkl_vsl_type&lt;BR /&gt;integer status !Error / status &lt;BR /&gt;integer brng !Index of generator to initialize stream &lt;BR /&gt;integer method !Method = 0 in case of uniform distribution &lt;BR /&gt;integer dimen !Initial condition of the stream &lt;BR /&gt;TYPE (VSL_STREAM_STATE) :: stream !Random stream&lt;BR /&gt;integer, PARAMETER :: nr = 1000 !Number of values required (whatever you want)&lt;BR /&gt;real gauss(nr)&lt;BR /&gt;real mean, sigma&lt;/P&gt;
&lt;P&gt;mean = 0.0&lt;BR /&gt;sigma = 1.0&lt;/P&gt;
&lt;P&gt;!SOBEL&lt;BR /&gt;method = VSL_METHOD_SGAUSSIAN_ICDF !NB - are different alternatives, but I found this worked well&lt;BR /&gt;brng = VSL_BRNG_SOBOL &lt;BR /&gt;dimen = 1 ! &amp;lt;== different values may be needed depending on application&lt;BR /&gt;gauss = 0.0&lt;BR /&gt;status = vslnewstream( stream, brng, dimen ) !Create new stream (SOBOL in this case&lt;BR /&gt;status = vsrnggaussian( method, stream, nr, gauss, mean, sigma ) &lt;BR /&gt;status = vsldeletestream( stream ) !Delete the stream&lt;/P&gt;
&lt;P&gt;!For alternate random types, substitute&lt;BR /&gt;! brng = VSL_BRNG_MT19937&lt;BR /&gt;! brng = VSL_BRNG_MRG32K3A&lt;BR /&gt;!NB: I found VSL_BRNG_MT19937 overall best for my applicat&lt;BR /&gt;end&lt;BR /&gt;But when I compile it ,the compiler showed 'error linker _vslnewstream; _vsrnggaussian; _vsldeletestream',but I could found these three functions in mkl_vsl.fi,why this happened?&lt;BR /&gt;Thanks for any answer!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2009 16:36:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864762#M7788</guid>
      <dc:creator>ppthelion</dc:creator>
      <dc:date>2009-12-10T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: use mkl_vsl module to generate random num</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864763#M7789</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/433393"&gt;ppthelion&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;Hi:&lt;BR /&gt; I'm trying to use mkl_vsl module to generate random num, what I did as follows:&lt;BR /&gt; First : I found a file name mkl_vsl.fi ,then I copy it to the %IA32% directory, 'ifort /c mkl_vsl.fi' then I got two mod file : mkl_vsl &amp;amp; mkl_vsl_type&lt;BR /&gt; second , follow is my program:&lt;BR /&gt;use mkl_vsl&lt;BR /&gt;use mkl_vsl_type&lt;BR /&gt;integer status !Error / status &lt;BR /&gt;integer brng !Index of generator to initialize stream &lt;BR /&gt;integer method !Method = 0 in case of uniform distribution &lt;BR /&gt;integer dimen !Initial condition of the stream &lt;BR /&gt;TYPE (VSL_STREAM_STATE) :: stream !Random stream&lt;BR /&gt;integer, PARAMETER :: nr = 1000 !Number of values required (whatever you want)&lt;BR /&gt;real gauss(nr)&lt;BR /&gt;real mean, sigma&lt;/P&gt;
&lt;P&gt;mean = 0.0&lt;BR /&gt;sigma = 1.0&lt;/P&gt;
&lt;P&gt;!SOBEL&lt;BR /&gt;method = VSL_METHOD_SGAUSSIAN_ICDF !NB - are different alternatives, but I found this worked well&lt;BR /&gt;brng = VSL_BRNG_SOBOL &lt;BR /&gt;dimen = 1 ! &amp;lt;== different values may be needed depending on application&lt;BR /&gt;gauss = 0.0&lt;BR /&gt;status = vslnewstream( stream, brng, dimen ) !Create new stream (SOBOL in this case&lt;BR /&gt;status = vsrnggaussian( method, stream, nr, gauss, mean, sigma ) &lt;BR /&gt;status = vsldeletestream( stream ) !Delete the stream&lt;/P&gt;
&lt;P&gt;!For alternate random types, substitute&lt;BR /&gt;! brng = VSL_BRNG_MT19937&lt;BR /&gt;! brng = VSL_BRNG_MRG32K3A&lt;BR /&gt;!NB: I found VSL_BRNG_MT19937 overall best for my applicat&lt;BR /&gt;end&lt;BR /&gt;But when I compile it ,the compiler showed 'error linker _vslnewstream; _vsrnggaussian; _vsldeletestream',but I could found these three functions in mkl_vsl.fi,why this happened?&lt;BR /&gt;Thanks for any answer!&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;are you building it in VS?  mkl_vsl.fi must be "visible" for compiler, and you provide that information via "Include directories" setting.&lt;BR /&gt;&lt;BR /&gt;In your case linker complains that it cannot see &lt;EM&gt;&lt;EM&gt;_vslnewstream; _vsrnggaussian; _vsldeletestream &lt;/EM&gt;&lt;/EM&gt;functions you used. Please set the *.lib files in your linker line(s).&lt;BR /&gt;&lt;BR /&gt;If you provide a bit more info on your environment and settings, then better (more accurate) help can be provided.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 00:41:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864763#M7789</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-12-11T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: use mkl_vsl module to generate random num</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864764#M7790</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/342379"&gt;ArturGuzik&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;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;are you building it in VS? mkl_vsl.fi must be "visible" for compiler, and you provide that information via "Include directories" setting.&lt;BR /&gt;&lt;BR /&gt;In your case linker complains that it cannot see &lt;EM&gt;&lt;EM&gt;_vslnewstream; _vsrnggaussian; _vsldeletestream &lt;/EM&gt;&lt;/EM&gt;functions you used. Please set the *.lib files in your linker line(s).&lt;BR /&gt;&lt;BR /&gt;If you provide a bit more info on your environment and settings, then better (more accurate) help can be provided.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for your timely reply! Ihave changed my program by add a definition:&lt;BR /&gt;!DEC$ OBJCOMMENT LIB:'mkl_lapack95.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_blas95.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_solver.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_sequential.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_intel_c.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_core.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_solver_sequential.lib'&lt;BR /&gt;and it worked well ,but i have another question : from the netadress &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt; , I can't find which static lib this module depend on , so what can I do ?&lt;BR /&gt;right way , my workplatform is : windows 7 RC 64 bit+ vs2008+ ifort 11.1.051 IA32/64&lt;BR /&gt;Thanks for your answer!&lt;BR /&gt;have a nice day!</description>
      <pubDate>Fri, 11 Dec 2009 02:09:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864764#M7790</guid>
      <dc:creator>ppthelion</dc:creator>
      <dc:date>2009-12-11T02:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: use mkl_vsl module to generate random num</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864765#M7791</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/433393"&gt;ppthelion&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;/DIV&gt;
&lt;BR /&gt;Thanks for your timely reply! Ihave changed my program by add a definition:&lt;BR /&gt;!DEC$ OBJCOMMENT LIB:'mkl_lapack95.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_blas95.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_solver.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_sequential.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_intel_c.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_core.lib'&lt;BR /&gt; !DEC$ OBJCOMMENT LIB:'mkl_solver_sequential.lib'&lt;BR /&gt;and it worked well ,but i have another question : from the netadress &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt; , I can't find which static lib this module depend on , so what can I do ?&lt;BR /&gt;right way , my workplatform is : windows 7 RC 64 bit+ vs2008+ ifort 11.1.051 IA32/64&lt;BR /&gt;Thanks for your answer!&lt;BR /&gt;have a nice day!&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm not sure you need all that libraries (solver for instance) for random numbers. Please note that you picked sequential versions (intentionally?).&lt;BR /&gt;&lt;BR /&gt;If you want to check librarier or your code dependcies use &lt;A href="http://www.dependencywalker.com/"&gt;DependencyWalker&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 03:35:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864765#M7791</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-12-11T03:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: use mkl_vsl module to generate random num</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864766#M7792</link>
      <description>&lt;P&gt;Thanks for your wonderful suggestions! ,I have download this smart software,it works well on my compute!~&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2009 05:09:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-mkl-vsl-module-to-generate-random-num/m-p/864766#M7792</guid>
      <dc:creator>ppthelion</dc:creator>
      <dc:date>2009-12-11T05:09:26Z</dc:date>
    </item>
  </channel>
</rss>

