1
1
openmpi/src/tools/ompi_info/ompi_info.h

100 строки
2.3 KiB
C
Исходник Обычный вид История

//
// $HEADER$
//
#ifndef OMPI_INFO_H
#define OMPI_INFO_H
#include <string>
#include <vector>
#include <map>
#include "class/ompi_list.h"
#include "util/cmd_line.h"
#include "mca/mca.h"
namespace ompi_info {
//
// Globals
//
typedef std::vector<std::string> type_vector_t;
extern bool pretty;
extern ompi_cmd_line_t *cmd_line;
extern const std::string type_all;
extern const std::string type_ompi;
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, ompi_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);
void show_mca_params(const std::string& type, const std::string& component,
const std::string& param);
void do_path(bool want_all, ompi_cmd_line_t *cmd_line);
void show_path(const std::string& type, const std::string& value);
void do_arch(ompi_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, ompi_list_t *> component_map_t;
extern component_map_t component_map;
void open_components();
void close_components();
}
#endif /* OMPI_INFO_H */