Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
7234 Discussions

SOBOL ... seeding / very strange behavior (pseudo works fine!)

pdonahue
Beginner
468 Views
Hello,

I've written an application that uses random numbers to generate an average (given sufficient sample size it converges) and am running into some strange problems with Sobol and quasi-random numbers. If I use VSL_BRNG_SOBOL and seed it with 2*ndims (taking MV gaussian draws), the applications works correctly when I take an odd number of draws (i.e. 3, 5, etc.). However, when I take an even number (i.e. 2, 4, etc.), I get results that are not correct!

Substituting VSL_BRNG_MCG59 and seeing with a random int to get pseudo-random numbers works correctly every time. What am I doing wrong or what is wrong with Sobol?

Thanks!
0 Kudos
1 Reply
Andrey_N_Intel
Employee
468 Views
Thank you for your question. It could be nice if you providea short test case which demonstrates the situation youhave described. Also, some other detailswould be useful: what version of MKL you use, and what method (BOXMULLER or BOXMULLER 2) is used for generation of the random vectors. Thank you.
0 Kudos
Reply