894acb0aa8
These two macros set the MCA prefix and MCA cmd line id, respectively. Specifically, MCA parameters will be named PREFIX<foo> in the environment, and the cmd line will use -ID foo bar. These macros must be called during configure.ac and a value supplied. In the case of Open MPI, the values given are PREFIX=OMPI_MCA_ and ID=mca. Other projects (such as ORCM) will call these macros with their own unique values. For example, ORCM uses PREFIX=ORCM_MCA_ and ID=omca This scheme is necessary to allow running Open MPI applications under systems that use their own versions of ORTE and OPAL. For example, when running OMPI applications under ORCM, we need the MCA params passed to the ORCM daemons to be separated from those recognized by the OMPI application.
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# -*- shell-script -*-
|
|
#
|
|
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2014 Intel, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# OPAL_SET_MCA_PREFIX([mca_prefix]
|
|
#
|
|
# This macro sets a prefix for the MCA parameter system. Specifically,
|
|
# OMPI_MCA_<foo> becomes <mca_prefix>_<foo>
|
|
#
|
|
# --------------------------------------------------------
|
|
AC_DEFUN([OPAL_SET_MCA_PREFIX],[
|
|
AS_IF([test "$opal_mca_prefix_set" = "yes"],
|
|
[AC_MSG_WARN([OPAL mca prefix was already set!])
|
|
AC_MSG_WARN([This is a configury programming error])
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
MCA_PREFIX=$1
|
|
opal_mca_prefix_set=yes
|
|
AC_DEFINE_UNQUOTED([OPAL_MCA_PREFIX], ["$MCA_PREFIX"], [MCA prefix string for envars])
|
|
])dnl
|
|
|
|
#
|
|
# Set the MCA cmd line identifier - i.e., change "-mca" to "-<foo>"
|
|
#
|
|
AC_DEFUN([OPAL_SET_MCA_CMD_LINE_ID],[
|
|
AS_IF([test "$opal_mca_cmd_id_set" = "yes"],
|
|
[AC_MSG_WARN([OPAL mca cmd line id was already set!])
|
|
AC_MSG_WARN([This is a configury programming error])
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
MCA_CMD_LINE_ID=$1
|
|
opal_mca_cmd_id_set=yes
|
|
AC_DEFINE_UNQUOTED([OPAL_MCA_CMD_LINE_ID], ["$MCA_CMD_LINE_ID"], [MCA cmd line identifier])
|
|
])dnl
|