<?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 int, long, vslSkipAheadStream, and a bug in MKL? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914006#M12412</link>
    <description>by default vslSkipAheadStream takes int as argument for how far to skip ahead, no surprice, this int will overflow quickly in a typical simulation (a negative argument makes vslSkipAheadStream hang running full speed) 
&lt;BR /&gt;ok so I compile with -DMKL_ILP64 to make all ints long, then vdRngGaussian will not work. 
&lt;BR /&gt;MKL ERROR : Parameter 2 was incorrect on entry to vdRngGaussia
&lt;BR /&gt;
&lt;BR /&gt;entire code is 
&lt;BR /&gt;double qq[20];	
&lt;BR /&gt;VSLStreamStatePtr stream,;
&lt;BR /&gt;vslNewStream( &amp;amp;stream, VSL_BRNG_MCG31, 1 );
&lt;BR /&gt;vdRngGaussian( VSL_METHOD_DGAUSSIAN_ICDF,stream, 20, qq, 0.0f, 1.0f );
&lt;BR /&gt;
&lt;BR /&gt;I cannot see how to solve this, either argument to vslSkipAheadStream will not work, for skipping ahead too far,  or vdRngGaussian gives this message. so help....
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;by the way vslSkipAheadStream should take long, not int as argument by default.</description>
    <pubDate>Sun, 05 Aug 2007 20:43:20 GMT</pubDate>
    <dc:creator>jond2</dc:creator>
    <dc:date>2007-08-05T20:43:20Z</dc:date>
    <item>
      <title>int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914006#M12412</link>
      <description>by default vslSkipAheadStream takes int as argument for how far to skip ahead, no surprice, this int will overflow quickly in a typical simulation (a negative argument makes vslSkipAheadStream hang running full speed) 
&lt;BR /&gt;ok so I compile with -DMKL_ILP64 to make all ints long, then vdRngGaussian will not work. 
&lt;BR /&gt;MKL ERROR : Parameter 2 was incorrect on entry to vdRngGaussia
&lt;BR /&gt;
&lt;BR /&gt;entire code is 
&lt;BR /&gt;double qq[20];	
&lt;BR /&gt;VSLStreamStatePtr stream,;
&lt;BR /&gt;vslNewStream( &amp;amp;stream, VSL_BRNG_MCG31, 1 );
&lt;BR /&gt;vdRngGaussian( VSL_METHOD_DGAUSSIAN_ICDF,stream, 20, qq, 0.0f, 1.0f );
&lt;BR /&gt;
&lt;BR /&gt;I cannot see how to solve this, either argument to vslSkipAheadStream will not work, for skipping ahead too far,  or vdRngGaussian gives this message. so help....
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;by the way vslSkipAheadStream should take long, not int as argument by default.</description>
      <pubDate>Sun, 05 Aug 2007 20:43:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914006#M12412</guid>
      <dc:creator>jond2</dc:creator>
      <dc:date>2007-08-05T20:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914007#M12413</link>
      <description>Doesn't your MKL ILP64 installation /include directory have include files with prototypes to promote your arguments? If you don't have a prototype in scope, you will have to be careful about your arguments, using e.g. 20L, qq, 0.0, 1.0 I doubt any MKL function would take a mixture of float and double arguments, such as you quote.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2007 00:58:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914007#M12413</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-08-06T00:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914008#M12414</link>
      <description>true, but this is not the problem, the second argument, the one it complains about is VSLStreamStatePtr, and this only arises when I compile with -DMKL_ILP64. 
&lt;BR /&gt;
&lt;BR /&gt;true, the float should not have been there, the prototype is 
&lt;BR /&gt;mkl_vsl_functions.h:_Vsl_Api(int,vdRngGaussian,(MKL_INT  , VSLStreamStatePtr , MKL_INT  , double [], double  , double  ))
&lt;BR /&gt;but it happily look it as  quoted, and it maked no difference to output. 
&lt;BR /&gt;
&lt;BR /&gt;e.g. following code 
&lt;BR /&gt;double qq[2];
&lt;BR /&gt;MKL_INT NN=2,i1=0,i2=1.0;	
&lt;BR /&gt;VSLStreamStatePtr stream;
&lt;BR /&gt;vslNewStream( &amp;amp;stream, VSL_BRNG_MCG31, 1 );
&lt;BR /&gt;vdRngGaussian( VSL_METHOD_DGAUSSIAN_ICDF,stream, NN, qq, i1, i2 );
&lt;BR /&gt;for (int i=0;i
&lt;BR /&gt;will give
&lt;BR /&gt;Dina ~/temp/t &amp;gt;./sim                                                     
&lt;BR /&gt;0       -6.12076
&lt;BR /&gt;1       0.0686268
&lt;BR /&gt;
&lt;BR /&gt;but when compiled with -DMKL_ILP64
&lt;BR /&gt;Dina ~/temp/t &amp;gt;./sim                                                       MKL ERROR : Parameter 2 was incorrect on entry to vdRngGaussia
&lt;BR /&gt;0       -3.26076e-232
&lt;BR /&gt;1       -3.30687e-232
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2007 08:14:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914008#M12414</guid>
      <dc:creator>jond2</dc:creator>
      <dc:date>2007-08-06T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914009#M12415</link>
      <description>&lt;P&gt;When using -DMKL_ILP64 please link your application to the suitable library locatedin the lib_ilp64 sub-directory of MKL folder (for example,..lib_ilp64em64tlibmkl_em64t.lib). Please, let us know how it works for you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:45:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914009#M12415</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2007-08-09T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914010#M12416</link>
      <description>that is what the manual says, but but the ilp libs are not included in the mac version I have, under /Library/Frameworks/Intel_MKL.framework
&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Aug 2007 15:57:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914010#M12416</guid>
      <dc:creator>jond2</dc:creator>
      <dc:date>2007-08-13T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: int, long, vslSkipAheadStream, and a bug in MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914011#M12417</link>
      <description>ILP64 support for MAC starts from MKL 10 Beta. As temporary work around you may want to replace one call to SkipAhead with 64-bit nskip parameter with sequence of calls to the same routine with proper 32-bit value of nskip. For generators like MCG31 32-bit version of SkipAheadwould be enough.</description>
      <pubDate>Tue, 14 Aug 2007 07:06:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/int-long-vslSkipAheadStream-and-a-bug-in-MKL/m-p/914011#M12417</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2007-08-14T07:06:12Z</dc:date>
    </item>
  </channel>
</rss>

