9fae5bfdf3
This commit adds support for aliasing component names. A component name alias is created by calling: mca_base_alias_register. The name of the project and framework are optional. The component name and component alias are required. Once an alias is registered all variables registered after the alias creation will have synonyms also registered. For example: ```c mca_base_alias_register("opal", "btl", "vader", "sm", false); ``` would cause all of the variables registered by btl/vader to have aliases that start with btl_sm. Ex: btl_vader_single_copy_mechanism would have the synonym: btl_sm_single_copy_mechanism. If aliases are registered before component filtering the alias can also be used for component selection. For example, if sm is registered as an alias to vader in the btl framework register function then ```--mca btl self,sm``` would be equivalent to ```--mca btl self,vader```. Signed-off-by: Nathan Hjelm <hjelmn@google.com>
73 строки
2.0 KiB
Makefile
73 строки
2.0 KiB
Makefile
#
|
|
# Copyright (c) 2004-2008 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-2005 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) 2010 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2020 Google LLC. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# Need this so that the base knows where to load dynamic components from
|
|
# (by default)
|
|
|
|
AM_CPPFLAGS = \
|
|
$(LTDLINCL)
|
|
|
|
noinst_LTLIBRARIES = libmca_base.la
|
|
|
|
dist_opaldata_DATA = help-mca-base.txt help-mca-var.txt
|
|
|
|
# Source code files
|
|
|
|
headers = \
|
|
base.h \
|
|
mca_base_alias.h \
|
|
mca_base_component_repository.h \
|
|
mca_base_var.h \
|
|
mca_base_pvar.h \
|
|
mca_base_var_enum.h \
|
|
mca_base_var_group.h \
|
|
mca_base_vari.h \
|
|
mca_base_framework.h
|
|
|
|
# Library
|
|
|
|
libmca_base_la_SOURCES = \
|
|
$(headers) \
|
|
mca_base_alias.c \
|
|
mca_base_close.c \
|
|
mca_base_cmd_line.c \
|
|
mca_base_component_compare.c \
|
|
mca_base_component_find.c \
|
|
mca_base_component_repository.c \
|
|
mca_base_components_open.c \
|
|
mca_base_components_close.c \
|
|
mca_base_components_select.c \
|
|
mca_base_list.c \
|
|
mca_base_open.c \
|
|
mca_base_var.c \
|
|
mca_base_pvar.c \
|
|
mca_base_var_enum.c \
|
|
mca_base_var_group.c \
|
|
mca_base_parse_paramfile.c \
|
|
mca_base_components_register.c \
|
|
mca_base_framework.c
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
opaldir = $(opalincludedir)/$(subdir)
|
|
opal_HEADERS = $(headers)
|
|
endif
|