Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL VSL skipahead

sm345
Beginner
267 Views
Hi:
I am trying to figure out skipahead. Need some help.

Let us say that I do the following
int nskip=10; //Test the theory
VSLStreamStatePtr stream[2];
vslNewStream( &stream[0], brng, seed );
vslCopyStream( &stream[1], stream[0] );
vslSkipAheadStream( stream[1], nskip );

Now when I generate random numbers from stream 0 and stream 1, should I expect the 11th element in sequence from call to stream 0 to be the same as the fist element in the sequence in calls to stream 1? That is what the vslnotes seems to suggest, but my experiments don't show it.

Thanks
0 Kudos
1 Reply
Andrey_N_Intel
Employee
267 Views

Hello,

Yes, you are right. However, please, keep in mind that some of the basic random number generators do not support skip-ahead method. What BRNG do you use in your program? Also, it could be nice if you provide short working test case which would demonstrate the issue.

Thank you.

0 Kudos
Reply