diff --git a/ompi/mca/btl/udapl/btl_udapl.c b/ompi/mca/btl/udapl/btl_udapl.c index bf32fb3cd3..6191b4648b 100644 --- a/ompi/mca/btl/udapl/btl_udapl.c +++ b/ompi/mca/btl/udapl/btl_udapl.c @@ -96,7 +96,7 @@ static int udapl_reg_mr(void *reg_data, void *base, size_t size, udapl_reg->lmr_triplet.segment_length = size; udapl_reg->lmr = NULL; -#if HAVE_UDAPL_DAT_MEM_TYPE_SO_VIRTUAL +#if HAVE_DAT_MEM_TYPE_SO_VIRTUAL if (reg->flags & MCA_MPOOL_FLAGS_SO_MEM) { lmr_mem_type = DAT_MEM_TYPE_SO_VIRTUAL; } diff --git a/ompi/mca/btl/udapl/configure.m4 b/ompi/mca/btl/udapl/configure.m4 index c682dd2dde..7b99754327 100644 --- a/ompi/mca/btl/udapl/configure.m4 +++ b/ompi/mca/btl/udapl/configure.m4 @@ -42,18 +42,14 @@ uDAPL component because the uDAPL headers are not fully ISO C])]) # Test for uDAPL relaxed ordered specific symbols AS_IF([test "$btl_udapl_happy" = "yes"], - [AC_MSG_CHECKING(for uDAPL relax order aware) + [AC_MSG_CHECKING(for uDAPL DAT_MEM_TYPE_SO_VIRTUAL) AC_TRY_COMPILE([#include ], - [DAT_RETURN dr = DAT_INVALID_RO_COOKIE; - DAT_MEM_TYPE dmt = DAT_MEM_TYPE_SO_VIRTUAL;], + [DAT_MEM_TYPE dmt = DAT_MEM_TYPE_SO_VIRTUAL;], [AC_MSG_RESULT(yes) btl_udapl_ro_aware=1], [AC_MSG_RESULT(no) btl_udapl_ro_aware=0]) - AC_DEFINE_UNQUOTED([HAVE_UDAPL_DAT_INVALID_RO_COOKIE], - [$btl_udapl_ro_aware], - [uDAPL DAT_INVALID_RO_COOKIE check]) - AC_DEFINE_UNQUOTED([HAVE_UDAPL_DAT_MEM_TYPE_SO_VIRTUAL], + AC_DEFINE_UNQUOTED([HAVE_DAT_MEM_TYPE_SO_VIRTUAL], [$btl_udapl_ro_aware], [uDAPL DAT_MEM_TYPE_SO_VIRTUAL check])])