[Bug fortran/108336] Repeatable random_numbers with openmp

2023-01-08 Thread gareth.davies.ga.code at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108336 --- Comment #2 from Gareth Davies --- (In reply to Andrew Pinski from comment #1) > Most likely there is only one seed per program so the random # generator is > using locks. So the order is dependent on which thread calls the function. > > Now

[Bug fortran/108336] Repeatable random_numbers with openmp

2023-01-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108336 --- Comment #1 from Andrew Pinski --- Most likely there is only one seed per program so the random # generator is using locks. So the order is dependent on which thread calls the function. Now having a seed per thread might be a good idea but i