f5e1a672cc
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>
89 строки
2.5 KiB
Makefile
89 строки
2.5 KiB
Makefile
#
|
|
# Copyright (c) 2013-2015 Intel, Inc. All rights reserved
|
|
#
|
|
# Copyright (c) 2014-2019 Cisco Systems, Inc. All rights reserved
|
|
# Copyright (c) 2017 Los Alamos National Security, LLC. All rights
|
|
# reserved.
|
|
# Copyright (c) 2017 IBM Corporation. All rights reserved.
|
|
# Copyright (c) 2019 Research Organization for Information Science
|
|
# and Technology (RIST). All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
EXTRA_DIST = post_configure.sh \
|
|
$(generated_source_modules)
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
$(generated_sources)
|
|
|
|
AM_CPPFLAGS = $(opal_ofi_CPPFLAGS)
|
|
|
|
dist_ompidata_DATA = help-mtl-ofi.txt
|
|
|
|
generated_source_modules = \
|
|
mtl_ofi_send_opt.pm \
|
|
mtl_ofi_isend_opt.pm \
|
|
mtl_ofi_irecv_opt.pm \
|
|
mtl_ofi_iprobe_opt.pm \
|
|
mtl_ofi_improbe_opt.pm
|
|
|
|
generated_sources = \
|
|
mtl_ofi_send_opt.c \
|
|
mtl_ofi_isend_opt.c \
|
|
mtl_ofi_irecv_opt.c \
|
|
mtl_ofi_iprobe_opt.c \
|
|
mtl_ofi_improbe_opt.c
|
|
|
|
mtl_ofi_sources = \
|
|
mtl_ofi.h \
|
|
mtl_ofi.c \
|
|
mtl_ofi_compat.h \
|
|
mtl_ofi_component.c \
|
|
mtl_ofi_endpoint.h \
|
|
mtl_ofi_endpoint.c \
|
|
mtl_ofi_request.h \
|
|
mtl_ofi_types.h \
|
|
mtl_ofi_opt.h \
|
|
$(generated_sources)
|
|
|
|
# A number of files are generated from macro expansion to minimize
|
|
# branches in the critical path. These files have perl modules with the suffix
|
|
# .pm that generate the corresponding .c file with all possible branches as
|
|
# their own function and symbol. Additional input
|
|
# files should be added to generated_source_modules, as well as adding
|
|
# their .c variants to generated_sources.
|
|
%.c : %.pm;
|
|
$(PERL) -I$(top_srcdir)/ompi/mca/mtl/ofi $(top_srcdir)/ompi/mca/mtl/ofi/generate-opt-funcs.pl $@
|
|
|
|
# Make the output library in this directory, and name it either
|
|
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
|
|
# (for static builds).
|
|
|
|
if MCA_BUILD_ompi_mtl_ofi_DSO
|
|
component_noinst =
|
|
component_install = mca_mtl_ofi.la
|
|
else
|
|
component_noinst = libmca_mtl_ofi.la
|
|
component_install =
|
|
endif
|
|
|
|
mcacomponentdir = $(ompilibdir)
|
|
mcacomponent_LTLIBRARIES = $(component_install)
|
|
mca_mtl_ofi_la_SOURCES = $(mtl_ofi_sources)
|
|
mca_mtl_ofi_la_LDFLAGS = \
|
|
$(opal_ofi_LDFLAGS) \
|
|
-module -avoid-version
|
|
mca_mtl_ofi_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
|
|
$(opal_ofi_LIBS)
|
|
|
|
noinst_LTLIBRARIES = $(component_noinst)
|
|
libmca_mtl_ofi_la_SOURCES = $(mtl_ofi_sources)
|
|
libmca_mtl_ofi_la_LDFLAGS = \
|
|
$(opal_ofi_LDFLAGS) \
|
|
-module -avoid-version
|
|
libmca_mtl_ofi_la_LIBADD = $(opal_ofi_LIBS)
|