On Sun, 19 Jul 2020, Sven Schreiber wrote:

Am 19.07.2020 um 22:04 schrieb Allin Cottrell:
On Sun, 19 Jul 2020, Sven Schreiber wrote:

What about the case where you want to have independent RNG sequences
across processes, but you want to be able to control them for
replication purposes, from one run to the next? How to achieve that
effect in gretl's MPI implementation?

set seed

<hansl>
print "starting MPI..."
mpi
   set seed 88775531

Aha, that's of course very simple. But it feels kind of strange to set
just one seed to manage three (or N) independent processes. Do they
really stay "independent"?

They're distinct RNGs under dcmt, so setting the same seed for each should not induce any dependence. If you're uncomfortable about that you could set a different seed per MPI process, but if you're willing to believe that dcmt does what it says it does --
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/DC/dc.html --
that's not necessary.

Allin
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to