[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #9 from Steve Kargl --- On Sat, Dec 12, 2020 at 11:55:41PM +, damian at sourceryinstitute dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 > > Damian Rouson changed: > >What|Removed

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 Damian Rouson changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #7 from Damian Rouson --- I agree that it would have been better for image_distinct to be optional. I co-hosted the 2018 WG5 meeting at which there were lengthy discussions around random number generation. I don't recall whether

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #4) > Invalid expectation? Not sure. This long response was composed before I saw Damian's reply. At the risk of starting an existential argument,

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #5 from Damian Rouson --- Steve, thanks for all the time you put into implementing random_init and responding to this PR. My confusion stemmed from the first sentence that I quoted from the standard. It states that the provided

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 Dominique d'Humieres changed: What|Removed |Added Last reconfirmed||2020-12-12

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #3 from kargl at gcc dot gnu.org --- Third thought. Here are the programs you meant to write (without error checking such as how_to_use_random_init must be run before how_to_seed_with_random_seed_like_random_init). program

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #2 from kargl at gcc dot gnu.org --- On 2nd thought. Of course, the results are different. In your first example, you have call random_init(repeatable=.true., image_distinct=.true.) which gets you processor-dependent seeds. In

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---