File: ompi_info.h

package info (click to toggle)
openmpi 1.2.7~rc2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 41,300 kB
  • ctags: 24,303
  • sloc: ansic: 224,835; sh: 22,627; makefile: 7,037; cpp: 6,353; asm: 3,547; lex: 528; objc: 383; perl: 348; csh: 89; f90: 49; fortran: 47; tcl: 12
file content (114 lines) | stat: -rw-r--r-- 3,165 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//
// Copyright (c) 2004-2005 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$
// 
// 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 "opal/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_greek;
  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 */