OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

ompi_info.h
1 /*
2 * Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2005 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2007-2009 Cisco Systems, Inc. All rights reserved.
13 * $COPYRIGHT$
14 *
15 * Additional copyrights may follow
16 *
17 * $HEADER$
18 */
19
20 #ifndef OMPI_INFO_TOOL_H
21 #define OMPI_INFO_TOOL_H
22 #include "ompi_config.h"
23
24 #include "opal/class/opal_list.h"
25 #include "opal/class/opal_pointer_array.h"
26 #include "opal/util/cmd_line.h"
27 #include "opal/mca/mca.h"
28
29 BEGIN_C_DECLS
30
31 /*
32 * Globals
33 */
34
35 extern bool ompi_info_pretty;
36 extern opal_cmd_line_t *ompi_info_cmd_line;
37
38 extern const char *ompi_info_type_all;
39 extern const char *ompi_info_type_ompi;
40 extern const char *ompi_info_type_orte;
41 extern const char *ompi_info_type_opal;
42 extern const char *ompi_info_type_base;
43
44 extern opal_pointer_array_t mca_types;
45
46
47 /*
48 * Version-related strings and functions
49 */
50
51 extern const char *ompi_info_ver_full;
52 extern const char *ompi_info_ver_major;
53 extern const char *ompi_info_ver_minor;
54 extern const char *ompi_info_ver_release;
55 extern const char *ompi_info_ver_greek;
56 extern const char *ompi_info_ver_svn;
57
58 void ompi_info_do_version(bool want_all, opal_cmd_line_t *cmd_line);
59 void ompi_info_show_ompi_version(const char *scope);
60 void ompi_info_show_component_version(const char *type_name,
61 const char *component_name,
62 const char *scope,
63 const char *ver_type);
64
65 /*
66 * Parameter/configuration-related functions
67 */
68
69 extern const char *ompi_info_component_all;
70 extern const char *ompi_info_param_all;
71
72 extern const char *ompi_info_path_prefix;
73 extern const char *ompi_info_path_bindir;
74 extern const char *ompi_info_path_libdir;
75 extern const char *ompi_info_path_incdir;
76 extern const char *ompi_info_path_mandir;
77 extern const char *ompi_info_path_pkglibdir;
78 extern const char *ompi_info_path_sysconfdir;
79 extern const char *ompi_info_path_exec_prefix;
80 extern const char *ompi_info_path_sbindir;
81 extern const char *ompi_info_path_libexecdir;
82 extern const char *ompi_info_path_datarootdir;
83 extern const char *ompi_info_path_datadir;
84 extern const char *ompi_info_path_sharedstatedir;
85 extern const char *ompi_info_path_localstatedir;
86 extern const char *ompi_info_path_infodir;
87 extern const char *ompi_info_path_pkgdatadir;
88 extern const char *ompi_info_path_pkgincludedir;
89
90 void ompi_info_do_params(bool want_all, bool want_internal);
91 void ompi_info_show_mca_params(opal_list_t *info,
92 const char *type, const char *component,
93 bool want_internal);
94
95 void ompi_info_do_path(bool want_all, opal_cmd_line_t *cmd_line);
96 void ompi_info_show_path(const char *type, const char *value);
97
98 void ompi_info_do_arch(void);
99 void ompi_info_do_hostname(void);
100 void ompi_info_do_config(bool want_all);
101
102 /*
103 * Output-related functions
104 */
105 void ompi_info_out(const char *pretty_message,
106 const char *plain_message,
107 const char *value);
108 void ompi_info_out_int(const char *pretty_message,
109 const char *plain_message,
110 int value);
111 /*
112 * Component-related functions
113 */
114 typedef struct {
115 opal_list_item_t super;
116 char *type;
117 opal_list_t *components;
118 } ompi_info_component_map_t;
119 OMPI_DECLSPEC OBJ_CLASS_DECLARATION(ompi_info_component_map_t);
120
121 extern opal_pointer_array_t component_map;
122
123 void ompi_info_open_components(void);
124 void ompi_info_close_components(void);
125
126 END_C_DECLS
127
128 #endif /* OMPI_INFO_H */
ompi_request_t::super
ompi_free_list_item_t super
Base type.
Definition: request.h:101
opal_pointer_array_t
dynamic pointer array
Definition: opal_pointer_array.h:45
opal_list.h
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
opal_pointer_array.h
See opal_bitmap.h for an explanation of why there is a split between OPAL and ORTE for this generic c...
mca.h
Top-level interface for all MCA components.
opal_list_item_t
Definition: opal_list.h:98
opal_cmd_line_t
Definition: cmd_line.h:126
cmd_line.h
General command line parsing facility for use throughout Open MPI.
ompi_info_component_map_t
Definition: ompi_info.h:114
opal_list_t
Definition: opal_list.h:147
OBJ_CLASS_DECLARATION
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236