
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>
67 строки
2.1 KiB
Makefile
67 строки
2.1 KiB
Makefile
#
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
# of Tennessee Research Foundation. All rights
|
|
# reserved.
|
|
# Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# Copyright (c) 2009-2019 Cisco Systems, Inc. All rights reserved
|
|
# Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
|
# Copyright (c) 2017 IBM Corporation. All rights reserved.
|
|
# Copyright (c) 2018 Intel, inc. All rights reserved
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
#dist_opaldata_DATA = help-mpi-btl-ofi.txt
|
|
|
|
AM_CPPFLAGS = $(opal_ofi_CPPFLAGS)
|
|
sources = \
|
|
btl_ofi.h \
|
|
btl_ofi_component.c \
|
|
btl_ofi_endpoint.h \
|
|
btl_ofi_endpoint.c \
|
|
btl_ofi_module.c \
|
|
btl_ofi_rdma.h \
|
|
btl_ofi_rdma.c \
|
|
btl_ofi_atomics.c \
|
|
btl_ofi_frag.c \
|
|
btl_ofi_frag.h \
|
|
btl_ofi_context.c
|
|
|
|
# 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_opal_btl_ofi_DSO
|
|
lib =
|
|
lib_sources =
|
|
component = mca_btl_ofi.la
|
|
component_sources = $(sources)
|
|
else
|
|
lib = libmca_btl_ofi.la
|
|
lib_sources = $(sources)
|
|
component =
|
|
component_sources =
|
|
endif
|
|
|
|
mcacomponentdir = $(opallibdir)
|
|
mcacomponent_LTLIBRARIES = $(component)
|
|
mca_btl_ofi_la_SOURCES = $(component_sources)
|
|
mca_btl_ofi_la_LDFLAGS = -module -avoid-version \
|
|
$(opal_ofi_LDFLAGS)
|
|
mca_btl_ofi_la_LIBADD = $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la \
|
|
$(opal_ofi_LIBS)
|
|
|
|
noinst_LTLIBRARIES = $(lib)
|
|
libmca_btl_ofi_la_SOURCES = $(lib_sources)
|
|
libmca_btl_ofi_la_LDFLAGS = -module -avoid-version $(opal_ofi_LDFLAGS)
|
|
libmca_btl_ofi_la_LIBS = $(opal_ofi_LIBS)
|