File: configure.m4

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (65 lines) | stat: -rw-r--r-- 2,544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- 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], [AS_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_MSG_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