|
From: | Peter Johansson |
Subject: | Re: [Help-gsl] Usage of GSL random in parallel code [OpenMP] |
Date: | Tue, 06 May 2014 09:17:08 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12 |
On 05/06/2014 02:17 AM, Matthias Sitte wrote:
3) You have to properly initialize the GSL RNGs. There are different ways to do that. I like using microseconds obtained from time functions. Beware that if you initialize using only the thread number, then subsequent calls of the same program will always generate the same result. If you'd use some time function, there would be some "random" element to it, so you're (much) less likely to generate the same result running the program twice.
Hi Mattias,This is the desired behaviour in many research applications when the reproducibility is crucial.
Cheers, -- Peter Johansson
[Prev in Thread] | Current Thread | [Next in Thread] |