You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the OPAL_CHECK_OFI configury macro:
- Make it safe to call the macro multiple times:
- The checks only execute the first time it is invoked
- Subsequent invocations, it just emits a friendly "checking..."
message so that configure output is sensible/logical
- With the goal of ultimately removing opal/mca/common/ofi, rename the
output variables from OPAL_CHECK_OFI to be
opal_ofi_{happy|CPPFLAGS|LDFLAGS|LIBS}.
- Update btl/ofi, btl/usnic, and mtl/ofi for these new conventions.
- Also, don't use AC_REQUIRE to invoke OPAL_CHECK_OFI because that
causes the macro to be invoked at a fairly random time, which makes
configure stdout confusing / hard to grok.
- Remove a little left-over kruft in OPAL_CHECK_OFI, too (which
resulted in an indenting change, making the change to
opal_check_ofi.m4 look larger than it really is).
Thanks Alastair McKinstry for the report and initial fix.
Thanks Rashika Kheria for the reminder.
Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
[Specify location of OFI libfabric installation, adding DIR/include to the default search location for libfabric headers, and DIR/lib or DIR/lib64 to the default search location for libfabric libraries. Error if libfabric support cannot be found.])])
dnl Do the real work of checking for OFI libfabric.
17
+
dnl Upon return:
18
+
dnl
19
+
dnl - opal_ofi_happy: will be "yes" or "no"
20
+
dnl - opal_ofi_{CPPFLAGS|LDFLAGS|LIBS} will be loaded (if relevant)
21
+
dnl
22
+
AC_DEFUN([_OPAL_CHECK_OFI],[
23
+
# Add --with options
24
+
AC_ARG_WITH([libfabric],
25
+
[AC_HELP_STRING([--with-libfabric=DIR],
26
+
[Deprecated synonym for --with-ofi])])
27
+
AC_ARG_WITH([libfabric-libdir],
28
+
[AC_HELP_STRING([--with-libfabric-libdir=DIR],
29
+
[Deprecated synonym for --with-ofi-libdir])])
30
+
31
+
AC_ARG_WITH([ofi],
32
+
[AC_HELP_STRING([--with-ofi=DIR],
33
+
[Specify location of OFI libfabric installation, adding DIR/include to the default search location for libfabric headers, and DIR/lib or DIR/lib64 to the default search location for libfabric libraries. Error if libfabric support cannot be found.])])
0 commit comments