Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] openmpi-1.7.2 fails to use the RDMACM CPC
From: Steve Wise (swise_at_[hidden])
Date: 2013-08-19 17:38:57


> -----Original Message-----
> From: Steve Wise [mailto:swise_at_[hidden]]
> Sent: Monday, August 19, 2013 4:02 PM
> To: 'Open MPI Developers'; 'Jeff Squyres (jsquyres)'
> Cc: 'Indranil Choudhury'
> Subject: RE: [OMPI devel] openmpi-1.7.2 fails to use the RDMACM CPC
>
> I guess HAVE_IBV_LINK_LAYER_ETHERNET is guarding against a libibverbs that doesn't have
> IBV_LINK_LAYER_ETHERNET defined. So the proper fix, I think, is to enhance configure to check
this and
> #define HAVE_IBV_LINK_LAYER_ETHERNET if it exists. Or have it check existence of a link_layer
field in
> the ibv_port_attr structure.
>
>

Maybe something like this?

Index: ompi_check_openfabrics.m4
===================================================================
--- ompi_check_openfabrics.m4 (revision 29048)
+++ ompi_check_openfabrics.m4 (working copy)
@@ -198,7 +198,7 @@
                           [#include <infiniband/verbs.h>])

            AC_MSG_CHECKING([if RDMAoE support is enabled])
- AC_DEFINE_UNQUOTED([OMPI_HAVE_RDMAOE], [$$1_have_rdmaoe], [Enable RDMAoE support])
+ AC_DEFINE_UNQUOTED([HAVE_IBV_LINK_LAYER_ETHERNET], [$$1_have_rdmaoe], [Enable RDMAoE
support])
            if test "1" = "$$1_have_rdmaoe"; then
                 AC_MSG_RESULT([yes])
            else