- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pete
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to keep context, this is part of a larger stability problem that we're trying to resolve on Windows. I know it could well be in the code, and all the usual "it runs on they other guy's platform" data points apply. I'm suspicious of some kind of C library mismatch effect, but not sure what RANDOM_NUMBER does under the hood.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This will take a while, but I am not going to drop it... Please file an Intel Premier Support request on this and ask that it be assigned to Steve Lionel. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pete,
In the IVF documentaton under SEED you will see the caution
"This routine is not thread-safe"
There is no similar caution under RANDOM_NUMBER (or RANDOM_SEED).
Therefore it is unknown if RANDOM_NUMBER is thread-safe. I would suspect if you cannot set the seed then it is questionable if RANDOM_NUMBER is thread-safe. It may work thread-safe in some implimentations and may not in others
Additionaly, it is ambiguous as what you would expect from multiple threads calling on RANDOM_NUMBER. i.e.
Do all threads use a commonglobal seed pair with the call to RANDOM_NUMBER being interlocked properly?
or
Does each thread use a thread-dependent global seed pair with the call to RANDOM_NUMBER insensitive to simulteaneous access?
Due to the lack of documentation regarding thread-safe and the ambiguity listed above. It would be wise for you to construct a subroutine containing critical section that uses RANDOM_SEED in a manner that produces the desired results (all threads share the seeds or all threads use independent seeds).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. As I tried to make clear before, there is only one FORTRAN thread of execution in the process.
Steve, I'll put in a Premier as requested. Thanks,
Pete

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »