Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Naive parallel implementation of Mersenne Twister random numbergenerator

Reply
Thread Tools

Naive parallel implementation of Mersenne Twister random numbergenerator

 
 
mjm2114@columbia.edu
Guest
Posts: n/a
 
      06-04-2008
Hi there,

I have a question on a naive implementation of a parallel MT that I've
done using the fortran version of MT19937ar.f posted in Prof.
Matsumoto's website. (http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/
MT2002/emt19937ar.html)

First, I setup a KISS RNG (Marsaglia, 1999)
in the master node and seed it. I then use the first 4 outputs from
the master node to
seed the MT in the first worker node
using subroutine init_by_array. I continue in the
same manner for all subsequent worker nodes, taking the next 4
outputs from the master node and using them to seed the MT in all
worker nodes. Once this is done, I have a different MT ready for use
in all the worker nodes. Do you think this is a good approach? I know
that the seeds used to set up each worker node MTs
have some correlation (since they are produced by the
same KISS RNG), but given the gigantic
period of the MT algorithm and the fact that KISS and MT are so
different,
wouldn't these correlations be insignificant
for all practical purposes?

I know I can't expect perfectly uncorrelated streams of outputs in
each node as in serious parallel PRNGs (i.e. SPRNG), but I'm only
going to use the code for small workstations/clusters of 8-16 nodes
(using mpi). Any ideas on the max number of uncorrelated streams I can
expect?

Thanks

Manuel
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac using Mersenne Twister in C g000we C Programming 3 03-05-2011 09:19 AM
Fast Mersenne Twister bearophileHUGS@lycos.com Python 0 05-15-2008 05:46 PM
Another Mersenne Twister question Simon C Programming 11 10-26-2006 04:12 AM
Is my naive C++ implementation the best, or... Rob Clark C++ 2 12-20-2005 01:21 PM
Mersenne Twister -- A Revised C++ Implementation Scott Robert Ladd C++ 31 01-07-2004 04:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57