Re: [PATCH,Fortran] Improve PRNG jumping when using threads

2019-09-04 Thread Steve Kargl
On Wed, Sep 04, 2019 at 03:09:26PM +0300, Janne Blomqvist wrote: > Currently, when a new thread needs to use the RANDOM_NUMBER intrinsic, > the per-thread PRNG state is initialized by copying the master state > and then jumping forwards N*2**128 entries in the stream so that the > PRNG streams for

[PATCH,Fortran] Improve PRNG jumping when using threads

2019-09-04 Thread Janne Blomqvist
Currently, when a new thread needs to use the RANDOM_NUMBER intrinsic, the per-thread PRNG state is initialized by copying the master state and then jumping forwards N*2**128 entries in the stream so that the PRNG streams for different threads don't alias each other, where N is the number of thread