cf377db823
Features: - Support for an override parameter file (openmpi-mca-param-override.conf). Variable values in this file can not be overridden by any file or environment value. - Support for boolean, unsigned, and unsigned long long variables. - Support for true/false values. - Support for enumerations on integer variables. - Support for MPIT scope, verbosity, and binding. - Support for command line source. - Support for setting variable source via the environment using OMPI_MCA_SOURCE_<var name>=source (either command or file:filename) - Cleaner API. - Support for variable groups (equivalent to MPIT categories). Notes: - Variables must be created with a backing store (char **, int *, or bool *) that must live at least as long as the variable. - Creating a variable with the MCA_BASE_VAR_FLAG_SETTABLE enables the use of mca_base_var_set_value() to change the value. - String values are duplicated when the variable is registered. It is up to the caller to free the original value if necessary. The new value will be freed by the mca_base_var system and must not be freed by the user. - Variables with constant scope may not be settable. - Variable groups (and all associated variables) are deregistered when the component is closed or the component repository item is freed. This prevents a segmentation fault from accessing a variable after its component is unloaded. - After some discussion we decided we should remove the automatic registration of component priority variables. Few component actually made use of this feature. - The enumerator interface was updated to be general enough to handle future uses of the interface. - The code to generate ompi_info output has been moved into the MCA variable system. See mca_base_var_dump(). opal: update core and components to mca_base_var system orte: update core and components to mca_base_var system ompi: update core and components to mca_base_var system This commit also modifies the rmaps framework. The following variables were moved from ppr and lama: rmaps_base_pernode, rmaps_base_n_pernode, rmaps_base_n_persocket. Both lama and ppr create synonyms for these variables. This commit was SVN r28236.
126 строки
3.9 KiB
C
126 строки
3.9 KiB
C
/*
|
|
* Copyright (c) 2004-2009 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) 2007-2010 Cisco Systems, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef ORTE_INFO_TOOL_H
|
|
#define ORTE_INFO_TOOL_H
|
|
#include "orte_config.h"
|
|
|
|
#include "opal/class/opal_list.h"
|
|
#include "opal/class/opal_pointer_array.h"
|
|
#include "opal/util/cmd_line.h"
|
|
#include "opal/mca/mca.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
/*
|
|
* Globals
|
|
*/
|
|
|
|
extern bool orte_info_pretty;
|
|
extern opal_cmd_line_t *orte_info_cmd_line;
|
|
|
|
extern const char *orte_info_type_all;
|
|
extern const char *orte_info_type_opal;
|
|
extern const char *orte_info_type_base;
|
|
|
|
extern opal_pointer_array_t mca_types;
|
|
|
|
|
|
/*
|
|
* Version-related strings and functions
|
|
*/
|
|
|
|
extern const char *orte_info_ver_full;
|
|
extern const char *orte_info_ver_major;
|
|
extern const char *orte_info_ver_minor;
|
|
extern const char *orte_info_ver_release;
|
|
extern const char *orte_info_ver_greek;
|
|
extern const char *orte_info_ver_svn;
|
|
|
|
void orte_info_do_version(bool want_all, opal_cmd_line_t *cmd_line);
|
|
void orte_info_show_orte_version(const char *scope);
|
|
void orte_info_show_component_version(const char *type_name,
|
|
const char *component_name,
|
|
const char *scope,
|
|
const char *ver_type);
|
|
|
|
/*
|
|
* Parameter/configuration-related functions
|
|
*/
|
|
|
|
extern const char *orte_info_component_all;
|
|
extern const char *orte_info_param_all;
|
|
|
|
extern const char *orte_info_path_prefix;
|
|
extern const char *orte_info_path_bindir;
|
|
extern const char *orte_info_path_libdir;
|
|
extern const char *orte_info_path_incdir;
|
|
extern const char *orte_info_path_mandir;
|
|
extern const char *orte_info_path_pkglibdir;
|
|
extern const char *orte_info_path_sysconfdir;
|
|
extern const char *orte_info_path_exec_prefix;
|
|
extern const char *orte_info_path_sbindir;
|
|
extern const char *orte_info_path_libexecdir;
|
|
extern const char *orte_info_path_datarootdir;
|
|
extern const char *orte_info_path_datadir;
|
|
extern const char *orte_info_path_sharedstatedir;
|
|
extern const char *orte_info_path_localstatedir;
|
|
extern const char *orte_info_path_infodir;
|
|
extern const char *orte_info_path_pkgdatadir;
|
|
extern const char *orte_info_path_pkgincludedir;
|
|
|
|
void orte_info_do_params(bool want_all, bool want_internal);
|
|
void orte_info_show_mca_params(const char *type, const char *component,
|
|
bool want_internal);
|
|
|
|
void orte_info_do_path(bool want_all, opal_cmd_line_t *cmd_line);
|
|
void orte_info_show_path(const char *type, const char *value);
|
|
|
|
void orte_info_do_arch(void);
|
|
void orte_info_do_hostname(void);
|
|
void orte_info_do_config(bool want_all);
|
|
|
|
/*
|
|
* Output-related functions
|
|
*/
|
|
void orte_info_out(const char *pretty_message,
|
|
const char *plain_message,
|
|
const char *value);
|
|
void orte_info_out_int(const char *pretty_message,
|
|
const char *plain_message,
|
|
int value);
|
|
/*
|
|
* Component-related functions
|
|
*/
|
|
typedef struct {
|
|
opal_list_item_t super;
|
|
char *type;
|
|
opal_list_t *components;
|
|
} orte_info_component_map_t;
|
|
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_info_component_map_t);
|
|
|
|
extern opal_pointer_array_t component_map;
|
|
|
|
void orte_info_components_open(void);
|
|
void orte_info_components_close(void);
|
|
|
|
END_C_DECLS
|
|
|
|
#endif /* ORTE_INFO_H */
|