4c1dd716c7
- new preferred API calls for registering MCA parameters are mca_base_param_reg_{int|string} and mca_base_param_reg_{int|string}_name. - See opal/mca/base/mca_base_param.h for docs on new calls. - Can now register and lookup a value at the same time. - Can now mark a parameter "read only" at registration time - Can now mark a parameter "internal" at registration time - Can now associate a help message with the parameter at registration time; displayed in the ompi_info output. The old API calls are still available for backwards compatibility (mca_base_param_register_{int|string}. They will eventually be removed -- all developers are encouraged to use the new APIs from here on out and replace any old calls with the new API. Some params were also renamed -- the previous convention of using "base_" as a prefix for any param that was not associated with a component is henceforth deprecated. Instead, use one of the following prefixes: mca: for anything in the MCA base itself opal: for anything in OPAL orte: for anything in ORTE mpi: for anything in OMPI This commit was SVN r6698.
114 строки
3.0 KiB
C++
114 строки
3.0 KiB
C++
//
|
|
// Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
// All rights reserved.
|
|
// Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
// 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$
|
|
//
|
|
// Additional copyrights may follow
|
|
//
|
|
// $HEADER$
|
|
//
|
|
|
|
#ifndef OMPI_INFO_H
|
|
#define OMPI_INFO_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include "opal/class/opal_list.h"
|
|
#include "opal/util/cmd_line.h"
|
|
#include "mca/mca.h"
|
|
|
|
|
|
namespace ompi_info {
|
|
|
|
//
|
|
// Globals
|
|
//
|
|
|
|
typedef std::vector<std::string> type_vector_t;
|
|
|
|
extern bool pretty;
|
|
extern opal_cmd_line_t *cmd_line;
|
|
|
|
extern const std::string type_all;
|
|
extern const std::string type_ompi;
|
|
extern const std::string type_orte;
|
|
extern const std::string type_opal;
|
|
extern const std::string type_base;
|
|
extern type_vector_t mca_types;
|
|
|
|
//
|
|
// Version-related strings and functions
|
|
//
|
|
|
|
extern const std::string ver_full;
|
|
extern const std::string ver_major;
|
|
extern const std::string ver_minor;
|
|
extern const std::string ver_release;
|
|
extern const std::string ver_alpha;
|
|
extern const std::string ver_beta;
|
|
extern const std::string ver_svn;
|
|
|
|
void do_version(bool want_all, opal_cmd_line_t *cmd_line);
|
|
void show_ompi_version(const std::string& scope);
|
|
void show_component_version(const std::string& type_name,
|
|
const std::string& component_name,
|
|
const std::string& scope,
|
|
const std::string& ver_type);
|
|
|
|
//
|
|
// Parameter/configuration-related functions
|
|
//
|
|
|
|
extern std::string component_all;
|
|
extern std::string param_all;
|
|
|
|
extern std::string path_prefix;
|
|
extern std::string path_bindir;
|
|
extern std::string path_libdir;
|
|
extern std::string path_incdir;
|
|
extern std::string path_pkglibdir;
|
|
extern std::string path_sysconfdir;
|
|
|
|
void do_params(bool want_all, bool want_internal);
|
|
void show_mca_params(const std::string& type, const std::string& component,
|
|
bool want_internal);
|
|
|
|
void do_path(bool want_all, opal_cmd_line_t *cmd_line);
|
|
void show_path(const std::string& type, const std::string& value);
|
|
|
|
void do_arch(opal_cmd_line_t *cmd_line);
|
|
void do_config(bool want_all);
|
|
|
|
//
|
|
// Output-related functions
|
|
//
|
|
void out(const std::string& pretty_message,
|
|
const std::string &plain_message,
|
|
int value);
|
|
void out(const std::string& pretty_message,
|
|
const std::string &plain_message,
|
|
const std::string& value);
|
|
|
|
//
|
|
// Component-related functions
|
|
//
|
|
|
|
typedef std::map<std::string, opal_list_t *> component_map_t;
|
|
|
|
extern component_map_t component_map;
|
|
|
|
void open_components();
|
|
void close_components();
|
|
|
|
}
|
|
|
|
#endif /* OMPI_INFO_H */
|