Skip to content

Commit

Permalink
Merge pull request #3637 from amaslenn/topic/f30-ibcm-v1.6
Browse files Browse the repository at this point in the history
RPM/CONFIG: fix requirement for ib_cm — v1.6
  • Loading branch information
yosefe authored May 28, 2019
2 parents eab54fc + 2567455 commit 545aefc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/uct/ib/cm/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@
#
# CM (IB connection manager) Support
#
cm_happy="no"

AC_ARG_WITH([cm],
[AC_HELP_STRING([--with-cm], [Compile with IB Connection Manager support])],
[],
[with_cm=yes])
[with_cm=guess])

AS_IF([test "x$with_cm" != xno],
[save_LIBS="$LIBS"
AC_CHECK_LIB([ibcm], [ib_cm_send_req],
[AC_SUBST(IBCM_LIBS, [-libcm])
uct_ib_modules+=":cm"],
[with_cm=no])
uct_ib_modules+=":cm"
cm_happy="yes"],
[AS_IF([test "x$with_cm" = xyes],
[AC_MSG_ERROR([CM requested but lib ibcm not found])],
[AC_MSG_WARN([CM support not found, skipping])]
)
])
LIBS="$save_LIBS"])

AM_CONDITIONAL([HAVE_TL_CM], [test "x$with_cm" != xno])
AM_CONDITIONAL([HAVE_TL_CM], [test "x$cm_happy" != xno])
AC_CONFIG_FILES([src/uct/ib/cm/Makefile])
4 changes: 4 additions & 0 deletions ucx.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
%bcond_with cuda
%bcond_with gdrcopy
%bcond_without ib
%if 0%{?fedora} >= 30
%bcond_with ib_cm
%else
%bcond_without ib_cm
%endif
%bcond_with knem
%bcond_without rdmacm
%bcond_with rocm
Expand Down

0 comments on commit 545aefc

Please sign in to comment.