1
1
openmpi/ompi/mca/pml/ob1/configure.m4
Nathan Hjelm dd74c6252f pml/ob1: custom matching cleanup and configury
This commit updates the new custom matching code in pml/ob1 so it can
not be enabled with a configure option. This commit also renames the
fuzzy-matching headers to avoid potential name conflicts and removes
the use of C reserved identifiers.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2018-08-02 13:06:19 -06:00

66 строки
2.5 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2013 Sandia National Laboratories. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# MCA_ompi_pml_ob1_POST_CONFIG(will_build)
# ----------------------------------------
# The OB1 PML requires a BML endpoint tag to compile, so require it.
# Require in POST_CONFIG instead of CONFIG so that we only require it
# if we're not disabled.
AC_DEFUN([MCA_ompi_pml_ob1_POST_CONFIG], [
AS_IF([test "$1" = "1"], [OMPI_REQUIRE_ENDPOINT_TAG([BML])])
])dnl
# MCA_ompi_pml_ob1_CONFIG(action-if-can-compile,
# [action-if-cant-compile])
# ------------------------------------------------
# We can always build, unless we were explicitly disabled.
AC_DEFUN([MCA_ompi_pml_ob1_CONFIG],[
OPAL_VAR_SCOPE_PUSH([pml_ob1_matching_engine])
AC_ARG_WITH([pml-ob1-matching], [AC_HELP_STRING([--with-pml-ob1-matching=type],
[Configure pml/ob1 to use an alternate matching engine. Only valid on x86_64 systems.
Valid values are: none, default, arrays, fuzzy-byte, fuzzy-short, fuzzy-word, vector (default: none)])])
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_NONE
if test -n "$with_pml_ob1_matching" ; then
case $with_pml_ob1_matching in
none)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_NONE
;;
default)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_LINKEDLIST
;;
arrays)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_ARRAYS
;;
fuzzy-byte)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_FUZZY_BYTE
;;
fuzzy-short)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_FUZZY_SHORT
;;
fuzzy-word)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_FUZZY_WORD
;;
vector)
pml_ob1_matching_engine=MCA_PML_OB1_CUSTOM_MATCHING_VECTOR
;;
*)
AC_ERROR([invalid matching type specified for --pml-ob1-matching: $with_pml_ob1_matching])
;;
esac
fi
AC_DEFINE_UNQUOTED([MCA_PML_OB1_CUSTOM_MATCHING], [$pml_ob1_matching_engine], [Custom matching engine to use in pml/ob1])
AC_CONFIG_FILES([ompi/mca/pml/ob1/Makefile])
[$1]
])dnl