On Mar 3, 2014, at 10:59 PM, Vasily Filipov <[email protected]> wrote:
> Yes, it is possible, but there is some different if I will do it this way -
> With the current implementation (today into a trunk) if AC_RUN_IFELSE fails
> => old code of RDMACM will rise,
> And by way you suggest, if we postpone the decision to a run time and the
> check fails =>
> we have to abort RDMACM at all, because it was compiled for working with
> AF_IB.
> So my question to you, if we take into account all this stuff above -
> What's the right way to implement it ? What do you think ?
I'm not sure I understand. Can't you write something like:
#if HAVE_DECL_AF_IB
rc = try_using_af_ib();
if (OMPI_ERR_NOT_AVAILABLE == rc) {
rc = try_the_other_way();
}
#else
rc = try_the_other_way();
#endif
--
Jeff Squyres
[email protected]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/