Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] IB warnings
From: Christopher Yeoh (cyeoh_at_[hidden])
Date: 2010-07-20 20:18:39

On 20 Jul 2010 13:03:57 +0100
"N.M. Maclaren" <nmm1_at_[hidden]> wrote:
> Not on most systems. While this is more clearly illegal, similar
> remarks apply to its safety. If there were any debugging C compilers
> around, it might well get trapped, but those are about as common as
> unicorns.
> It's a horrible coding style, but this is a case of damned if you do,
> and damned if you don't.

Yep the only other way to do it I saw was to create an unsigned version
of OPAL_ATOMIC_CMPSET_32. But this code is *only* used for debug
purposes for so I thought that was excessive. And I agree that
twos complement representation should make this ok, albeit ugly.