2004-01-19 20:44:47 +03:00
|
|
|
//
|
|
|
|
// $HEADER$
|
|
|
|
//
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#ifndef OMPI_INFO_H
|
|
|
|
#define OMPI_INFO_H
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "class/ompi_list.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "util/cmd_line.h"
|
2004-01-19 20:44:47 +03:00
|
|
|
#include "mca/mca.h"
|
|
|
|
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
namespace ompi_info {
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
//
|
|
|
|
// Globals
|
|
|
|
//
|
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
typedef std::vector<std::string> type_vector_t;
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
extern bool pretty;
|
2004-06-07 19:33:53 +04:00
|
|
|
extern ompi_cmd_line_t *cmd_line;
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
extern const std::string type_all;
|
2004-06-07 19:33:53 +04:00
|
|
|
extern const std::string type_ompi;
|
2004-01-19 20:44:47 +03:00
|
|
|
extern const std::string type_base;
|
2004-01-30 01:10:58 +03:00
|
|
|
extern type_vector_t mca_types;
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
//
|
|
|
|
// 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;
|
2004-03-19 09:05:27 +03:00
|
|
|
extern const std::string ver_svn;
|
2004-01-19 20:44:47 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void do_version(bool want_all, ompi_cmd_line_t *cmd_line);
|
|
|
|
void show_ompi_version(const std::string& scope);
|
2004-01-29 05:51:20 +03:00
|
|
|
void show_module_version(const std::string& type_name,
|
|
|
|
const std::string& module_name,
|
|
|
|
const std::string& scope,
|
|
|
|
const std::string& ver_type);
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
//
|
|
|
|
// Parameter/configuration-related functions
|
|
|
|
//
|
|
|
|
|
|
|
|
extern std::string module_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;
|
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
void do_params();
|
2004-01-19 20:44:47 +03:00
|
|
|
void show_mca_params(const std::string& type, const std::string& module,
|
|
|
|
const std::string& param);
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void do_path(bool want_all, ompi_cmd_line_t *cmd_line);
|
2004-01-19 20:44:47 +03:00
|
|
|
void show_path(const std::string& type, const std::string& value);
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void do_arch(ompi_cmd_line_t *cmd_line);
|
2004-01-19 20:44:47 +03:00
|
|
|
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);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Module-related functions
|
|
|
|
//
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef std::map<std::string, ompi_list_t *> module_map_t;
|
2004-01-19 20:44:47 +03:00
|
|
|
|
|
|
|
extern module_map_t module_map;
|
|
|
|
|
|
|
|
void open_modules();
|
|
|
|
void close_modules();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#endif /* OMPI_INFO_H */
|