3cc8b0461a
* Moved "check basics" sanity check from openib BTL to common/verbs (which also allows us to have openib ''not'' include <infiniband/driver.h>, which is a Very Good Thing) * Add new ompi_common_verbs_qp_test() function, which tests to see whether a device supports RC and/or UD QPs. The openib BTL now uses this function to ensure that the device supports RC QPs. * Rename ompi_common_verbs_find_ibv_ports() to be ompi_common_verbs_find_ports() -- the "ibv" was redundant. * Re-work ompi_common_verbs_find_ports() to use ompi_common_verbs_qp_test() instead of testing for RC/UD QPs itself * Add bunches of opal_output_verbose() to the find_ports() routine (to help diagnosing connectivity problems -- imaging running with --mca btl_base_verbose 10; you'll see all the find_ports() test results) * Make ompi_common_verbs_qp_test() warn if devices/ports are supplied in the if_include/if_exclude strings that do not exists (quite similar to what the openib BTL does today). * Add ompi_common_verbs_mca_register() function, which registers common verbs MCA params. It will also register MCA param synonyms for thse MCA params to upper-level components (e.g., btl_<upper-level-component>_<the-mca-param>). * common_verbs_warn_nonexistent_if: warn if if_include/if_exclude-specified devices or ports do not exist. This commit was SVN r27332.
78 строки
2.2 KiB
Makefile
78 строки
2.2 KiB
Makefile
#
|
|
# Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
|
|
# Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
|
|
# Copyright (c) 2012 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
AM_CPPFLAGS = $(common_verbs_CPPFLAGS)
|
|
|
|
headers = \
|
|
common_verbs.h
|
|
|
|
sources = \
|
|
common_verbs_basics.c \
|
|
common_verbs_devlist.c \
|
|
common_verbs_find_ports.c \
|
|
common_verbs_mca.c \
|
|
common_verbs_port.c \
|
|
common_verbs_qp_type.c
|
|
|
|
dist_pkgdata_DATA = \
|
|
help-ompi-common-verbs.txt
|
|
|
|
# To simplify components that link to this library, we will *always*
|
|
# have an output libtool library named libmca_<type>_<name>.la -- even
|
|
# for case 2) described above (i.e., so there's no conditional logic
|
|
# necessary in component Makefile.am's that link to this library).
|
|
# Hence, if we're creating a noinst version of this library (i.e.,
|
|
# case 2), we sym link it to the libmca_<type>_<name>.la name
|
|
# (libtool will do the Right Things under the covers). See the
|
|
# all-local and clean-local rules, below, for how this is effected.
|
|
|
|
lib_LTLIBRARIES =
|
|
noinst_LTLIBRARIES =
|
|
comp_inst = libmca_common_verbs.la
|
|
comp_noinst = libmca_common_verbs_noinst.la
|
|
|
|
if MCA_BUILD_ompi_common_verbs_DSO
|
|
lib_LTLIBRARIES += $(comp_inst)
|
|
else
|
|
noinst_LTLIBRARIES += $(comp_noinst)
|
|
endif
|
|
|
|
libmca_common_verbs_la_SOURCES = $(headers) $(sources)
|
|
# TBD: create own config file
|
|
libmca_common_verbs_la_CPPFLAGS = $(common_verbs_CPPFLAGS)
|
|
libmca_common_verbs_la_LDFLAGS = $(common_verbs_LDFLAGS)
|
|
libmca_common_verbs_la_LIBADD = $(common_verbs_LIBS)
|
|
libmca_common_verbs_noinst_la_SOURCES = $(libmca_common_verbs_la_SOURCES)
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
ompidir = $(includedir)/openmpi/ompi/mca/common/verbs
|
|
ompi_HEADERS = $(headers)
|
|
else
|
|
ompidir = $(includedir)
|
|
endif
|
|
|
|
# These two rules will sym link the "noinst" libtool library filename
|
|
# to the installable libtool library filename in the case where we are
|
|
# compiling this component statically (case 2), described above).
|
|
|
|
all-local:
|
|
if test -z "$(lib_LTLIBRARIES)"; then \
|
|
rm -f "$(comp_inst)"; \
|
|
$(LN_S) "$(comp_noinst)" "$(comp_inst)"; \
|
|
fi
|
|
|
|
clean-local:
|
|
if test -z "$(lib_LTLIBRARIES)"; then \
|
|
rm -f "$(comp_inst)"; \
|
|
fi
|