<?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: vslloadstreamf and vslsavestreamf in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202418#M29928</link>
    <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;thanks for looking into this&lt;/P&gt;
&lt;P&gt;here is the code:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;include "mkl_vsl.f90"
program test
  use, intrinsic :: iso_fortran_env, only: int64, real64
  use mkl_vsl
  use mkl_vsl_type
  implicit none
  type(vsl_stream_state), allocatable :: stream
  integer :: seed=12345, err=0, i, n=10
  real(real64), allocatable :: ran(:,:)
  character(:), allocatable :: file
  file="backup"//achar(0)
  allocate(stream)
  err=vslnewstream(stream,vsl_brng_mcg59,seed)
  allocate(ran(n,6),source=0._real64)
  do i=1,5
    err=vdrnguniform(&amp;amp;
      &amp;amp;method=vsl_rng_method_uniform_std_accurate,&amp;amp;
      &amp;amp;stream=stream,&amp;amp;
      &amp;amp;n=n,&amp;amp;
      &amp;amp;r=ran(:,i),&amp;amp;
      &amp;amp;a=0._real64,&amp;amp;
      &amp;amp;b=1._real64&amp;amp;
      &amp;amp;)
    if(err/=0) stop("e_1")
    if(i==4) then
      err=vslsavestreamf(stream,file);if(err/=0) stop("e_2")
    end if
  end do
  do i=1,n
    write(54,"(*(g0:"",""))") ran(i,:)
  end do
  err=vsldeletestream(stream);if(err/=0) stop("e_3")
  deallocate(stream);allocate(stream)
  err=vslloadstreamf(stream,file);if(err/=0) stop("e_4")
  err=vdrnguniform(&amp;amp;
      &amp;amp;method=vsl_rng_method_uniform_std_accurate,&amp;amp;
      &amp;amp;stream=stream,&amp;amp;
      &amp;amp;n=n,&amp;amp;
      &amp;amp;r=ran(:,6),&amp;amp;
      &amp;amp;a=0._real64,&amp;amp;
      &amp;amp;b=1._real64&amp;amp;
      &amp;amp;)
  if(err/=0) stop("e_5")
  write(*,*) maxval(abs(ran(:,5)-ran(:,6)))
  do i=1,n
    write(55,"(*(g0:"",""))") ran(i,:)
  end do
end program test&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values in column 5 and 6 are:&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;.5473213773260636,.5473213773260636
.2389786232270872,.5604556829432085
.8935433105367024,.8387970600185911E-02
.3583476676634463,.3696792567022830
.5604556829432085,.8048426450699457E-01
.2037354232470519,.2041821355220092
.6115156080720576,.2845506451480754
.8546388208725005,.6017603680188723
.8387970600185911E-02,.6126414139055257
.9922226494797135,.7575543283586325&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compiler and mkl versions were 19.05 and 19.1.1. Operation system is linux.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 10:05:19 GMT</pubDate>
    <dc:creator>may_ka</dc:creator>
    <dc:date>2020-08-21T10:05:19Z</dc:date>
    <item>
      <title>vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1200335#M29917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am wondering whether a random number stream created with vslloadstreamf should continue at the state where the previous stream was dumped via vslsavestreamf? I tried the following&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;create a stream via vslnewstream&lt;/LI&gt;
&lt;LI&gt;run a loop of 10 filling a matrix with 11 columns with random numbers, but only columns 1-10&lt;/LI&gt;
&lt;LI&gt;save the stream state at round 9 via vslsavestreamf&lt;/LI&gt;
&lt;LI&gt;destroy the stream after round 10&lt;/LI&gt;
&lt;LI&gt;create a new stream via vslloadstreamf&lt;/LI&gt;
&lt;LI&gt;fill the 11 column of the above matrix with random numbers from that stream&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My expectation was the entries in column 10 and 11 of the matrix are exactly equal. This was not the case. I understood the phrase "saving the stream state" in the mkl manual such that columns 10 and 11 should be equal. Did I miss-understand the implications of "saving the stream state", or did I do anything wrong?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:10:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1200335#M29917</guid>
      <dc:creator>may_ka</dc:creator>
      <dc:date>2020-08-14T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1200511#M29918</link>
      <description>&lt;P&gt;I took the example&amp;nbsp;vslstream2file.f that is included in the MKL distribution, and modified it to fit your description, using a real matrix with 10 rows and 11 columns. I found that columns 10 and 11 were identical.&lt;/P&gt;
&lt;P&gt;Perhaps the devil is in the details. Please provide your test code and name the compiler version and options.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 11:50:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1200511#M29918</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-08-15T11:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202418#M29928</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;thanks for looking into this&lt;/P&gt;
&lt;P&gt;here is the code:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;include "mkl_vsl.f90"
program test
  use, intrinsic :: iso_fortran_env, only: int64, real64
  use mkl_vsl
  use mkl_vsl_type
  implicit none
  type(vsl_stream_state), allocatable :: stream
  integer :: seed=12345, err=0, i, n=10
  real(real64), allocatable :: ran(:,:)
  character(:), allocatable :: file
  file="backup"//achar(0)
  allocate(stream)
  err=vslnewstream(stream,vsl_brng_mcg59,seed)
  allocate(ran(n,6),source=0._real64)
  do i=1,5
    err=vdrnguniform(&amp;amp;
      &amp;amp;method=vsl_rng_method_uniform_std_accurate,&amp;amp;
      &amp;amp;stream=stream,&amp;amp;
      &amp;amp;n=n,&amp;amp;
      &amp;amp;r=ran(:,i),&amp;amp;
      &amp;amp;a=0._real64,&amp;amp;
      &amp;amp;b=1._real64&amp;amp;
      &amp;amp;)
    if(err/=0) stop("e_1")
    if(i==4) then
      err=vslsavestreamf(stream,file);if(err/=0) stop("e_2")
    end if
  end do
  do i=1,n
    write(54,"(*(g0:"",""))") ran(i,:)
  end do
  err=vsldeletestream(stream);if(err/=0) stop("e_3")
  deallocate(stream);allocate(stream)
  err=vslloadstreamf(stream,file);if(err/=0) stop("e_4")
  err=vdrnguniform(&amp;amp;
      &amp;amp;method=vsl_rng_method_uniform_std_accurate,&amp;amp;
      &amp;amp;stream=stream,&amp;amp;
      &amp;amp;n=n,&amp;amp;
      &amp;amp;r=ran(:,6),&amp;amp;
      &amp;amp;a=0._real64,&amp;amp;
      &amp;amp;b=1._real64&amp;amp;
      &amp;amp;)
  if(err/=0) stop("e_5")
  write(*,*) maxval(abs(ran(:,5)-ran(:,6)))
  do i=1,n
    write(55,"(*(g0:"",""))") ran(i,:)
  end do
end program test&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values in column 5 and 6 are:&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;.5473213773260636,.5473213773260636
.2389786232270872,.5604556829432085
.8935433105367024,.8387970600185911E-02
.3583476676634463,.3696792567022830
.5604556829432085,.8048426450699457E-01
.2037354232470519,.2041821355220092
.6115156080720576,.2845506451480754
.8546388208725005,.6017603680188723
.8387970600185911E-02,.6126414139055257
.9922226494797135,.7575543283586325&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compiler and mkl versions were 19.05 and 19.1.1. Operation system is linux.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 10:05:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202418#M29928</guid>
      <dc:creator>may_ka</dc:creator>
      <dc:date>2020-08-21T10:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202449#M29929</link>
      <description>&lt;P&gt;I built and ran your test program on Windows 10 x64 using (i) IFort 16.0.8, (ii) IFort 19.0.5 , and (iii) IFort 19.1.2.&lt;/P&gt;
&lt;P&gt;Between runs, I deleted the .mod, .obj and fort.5n files.&lt;/P&gt;
&lt;P&gt;In all three runs, the program printed out " 0.000000000000000E+000" and the fifth and sixth columns of output file fort.55 were identical.&lt;/P&gt;
&lt;P&gt;I do not have a Linux system with IFort on it as of now. Perhaps someone else with such a system can repeat the test, as it only takes a minute.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 11:38:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202449#M29929</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-08-21T11:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202515#M29934</link>
      <description>&lt;P&gt;I see the different outpupts when the different code path has been applied:&lt;/P&gt;
&lt;P&gt;&amp;gt;set MKL_CBWR=SSE2&lt;/P&gt;
&lt;P&gt;&amp;gt;1.exe&lt;/P&gt;
&lt;P&gt;Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;0.000000000000000E+000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;set MKL_CBWR=AVX2&lt;/P&gt;
&lt;P&gt;&amp;gt;1.exe&lt;/P&gt;
&lt;P&gt;Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;0.885155339936517&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We will investigate the cause of the problem and keep the thread updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:45:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1202515#M29934</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-08-21T15:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1238649#M30534</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The fix of the problem has been released as a part of oneMKL v.2021.1.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Intel MKL 2021&amp;nbsp;package&amp;nbsp;is&amp;nbsp;now ready for download.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 08:27:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1238649#M30534</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-12-18T08:27:23Z</dc:date>
    </item>
    <item>
      <title>Re:vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1291993#M31566</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please let us know if your issue has been resolved or not?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2021 09:18:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1291993#M31566</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-06-22T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re:vslloadstreamf and vslsavestreamf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1293818#M31602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since we didn't hear back from you, we are closing this thread for now. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jun 2021 07:44:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslloadstreamf-and-vslsavestreamf/m-p/1293818#M31602</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-06-28T07:44:11Z</dc:date>
    </item>
  </channel>
</rss>

