Gilles,
I responded too quickly, not thinking that this test is pretty quick and
doesn't require that I try sparc, ppc, ia64, etc.
So my results:
Solaris-{10,11}:
With "cc" I agree with your findings (need -D_REENTRANT for correct
behavior).
With gcc either "-pthread" or "-D_REENTRANT" gave correct behavior
NetBSD-5:
Got "KO: error 4 (0)" no matter what I tried
Linux, FreeBSD-{9,10}, NetBSD-6, OpenBSD-5:
Using "-pthread" or "-lpthread" was necessary to link, and sufficient for
correct results.
MacOSX-10.{5,6,7,8}:
No compiler options were required for 'cc' (which has been gcc, llvm-gcc
and clang through those OS revs)
Though I have access, I did not try compute nodes on BG/Q or Cray X{E,K,C}.
Let me know if any of those are of significant concern.
I no longer have AIX or IRIX access.
-Paul
On Mon, Oct 27, 2014 at 2:48 AM, Gilles Gouaillardet <
[email protected]> wrote:
> Thanks Paul !
>
> Gilles
>
> On 2014/10/27 18:47, Paul Hargrove wrote:
>
> On Mon, Oct 27, 2014 at 2:42 AM, Gilles Gouaillardet
> <[email protected]> wrote:
> [...]
>
>
> Paul, since you have access to many platforms, could you please run this
> test with and without -D_REENTRANT / -D_THREAD_SAFE
> and tell me where the program produces incorrect behaviour (output is
> KO...) without the flag ?
>
> Thanks in advance,
>
> Gilles
>
>
> Gilles,
>
> I have a lot of things due between now and the SC14 conference.
> I've added this test to my to-do list, but cannot be sure of how soon I'll
> be able to get results back to you.
>
> Feel free to remind me off-list,
> -Paul
>
>
>
>
>
>
> _______________________________________________
> devel mailing [email protected]
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/10/16095.php
>
>
>
> _______________________________________________
> devel mailing list
> [email protected]
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/10/16096.php
>
--
Paul H. Hargrove [email protected]
Future Technologies Group
Computer and Data Sciences Department Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory Fax: +1-510-486-6900