<?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 Hello, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-write-ILP64-version-vdRngUniform-Namely-very-long-random/m-p/1055641#M21406</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can you please check status of the&amp;nbsp;dynamic memory allocation in your environment and let me know if the memory for rnd_data is successfully allocated in both modes, with -DMKL_INT64 and&amp;nbsp;without it?&lt;/P&gt;

&lt;P&gt;Please, use MKL_INT type for the variable total.&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2014 14:44:01 GMT</pubDate>
    <dc:creator>Andrey_N_Intel</dc:creator>
    <dc:date>2014-07-07T14:44:01Z</dc:date>
    <item>
      <title>How to write ILP64-version vdRngUniform? (Namely, very long random number array)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-write-ILP64-version-vdRngUniform-Namely-very-long-random/m-p/1055640#M21405</link>
      <description>&lt;PRE class="brush:cpp;"&gt;......
MKL_LONG status;
VSLStreamStatePtr stream;
......
int main(){
vslNewStream(&amp;amp;stream, VSL_BRNG_SFMT19937, 777);
rnd_data = (double*)malloc(total * sizeof(double));
status = vdRngUniform(VSL_RNG_METHOD_UNIFORM_STD, stream, total, rnd_data, 0.0, 1.0);
vslDeleteStream(&amp;amp;stream);
......
}&lt;/PRE&gt;

&lt;P&gt;The above quite standard c++ VSL code gives 'MKL ERROR: Parameter 3 was incorrect on entry to vdRngUniform' once the variable 'total' is large than 2^32-1. I'm trying to write a ILP64 version to overcome this. In so far as I've tried, by referring to MKL manual &lt;A href="https://software.intel.com/sites/products/documentation/hpc/mkl/lin/MKL_UG_structure/Support_for_ILP64_Programming.htm"&gt;https://software.intel.com/sites/products/documentation/hpc/mkl/lin/MKL_UG_structure/Support_for_ILP64_Programming.htm&lt;/A&gt;, the error remained all along. I tried using compilation command 'icpc -DMKL_ILP64 -mkl a.cpp' and defining variable 'total' as MKL_INT type. I'm using some 64-bit linux machine.&lt;/P&gt;

&lt;P&gt;Could you kindly help me on this? Thanks in advance!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2014 08:06:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-write-ILP64-version-vdRngUniform-Namely-very-long-random/m-p/1055640#M21405</guid>
      <dc:creator>kingking_r_</dc:creator>
      <dc:date>2014-07-05T08:06:02Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-write-ILP64-version-vdRngUniform-Namely-very-long-random/m-p/1055641#M21406</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can you please check status of the&amp;nbsp;dynamic memory allocation in your environment and let me know if the memory for rnd_data is successfully allocated in both modes, with -DMKL_INT64 and&amp;nbsp;without it?&lt;/P&gt;

&lt;P&gt;Please, use MKL_INT type for the variable total.&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 14:44:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-write-ILP64-version-vdRngUniform-Namely-very-long-random/m-p/1055641#M21406</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2014-07-07T14:44:01Z</dc:date>
    </item>
  </channel>
</rss>

