OpenMPI  0.1.1
orte-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-2010 Cisco Systems, Inc. All rights reserved.
13  * $COPYRIGHT$
14  *
15  * Additional copyrights may follow
16  *
17  * $HEADER$
18  */
19 
20 #ifndef ORTE_INFO_TOOL_H
21 #define ORTE_INFO_TOOL_H
22 #include "orte_config.h"
23 
24 #include "opal/class/opal_list.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 orte_info_pretty;
36 extern opal_cmd_line_t *orte_info_cmd_line;
37 
38 extern const char *orte_info_type_all;
39 extern const char *orte_info_type_orte;
40 extern const char *orte_info_type_orte;
41 extern const char *orte_info_type_opal;
42 extern const char *orte_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 *orte_info_ver_full;
52 extern const char *orte_info_ver_major;
53 extern const char *orte_info_ver_minor;
54 extern const char *orte_info_ver_release;
55 extern const char *orte_info_ver_greek;
56 extern const char *orte_info_ver_svn;
57 
58 void orte_info_do_version(bool want_all, opal_cmd_line_t *cmd_line);
59 void orte_info_show_orte_version(const char *scope);
60 void orte_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 *orte_info_component_all;
70 extern const char *orte_info_param_all;
71 
72 extern const char *orte_info_path_prefix;
73 extern const char *orte_info_path_bindir;
74 extern const char *orte_info_path_libdir;
75 extern const char *orte_info_path_incdir;
76 extern const char *orte_info_path_mandir;
77 extern const char *orte_info_path_pkglibdir;
78 extern const char *orte_info_path_sysconfdir;
79 extern const char *orte_info_path_exec_prefix;
80 extern const char *orte_info_path_sbindir;
81 extern const char *orte_info_path_libexecdir;
82 extern const char *orte_info_path_datarootdir;
83 extern const char *orte_info_path_datadir;
84 extern const char *orte_info_path_sharedstatedir;
85 extern const char *orte_info_path_localstatedir;
86 extern const char *orte_info_path_infodir;
87 extern const char *orte_info_path_pkgdatadir;
88 extern const char *orte_info_path_pkgincludedir;
89 
90 void orte_info_do_params(bool want_all, bool want_internal);
91 void orte_info_show_mca_params(opal_list_t *info,
92  const char *type, const char *component,
93  bool want_internal);
94 
95 void orte_info_do_path(bool want_all, opal_cmd_line_t *cmd_line);
96 void orte_info_show_path(const char *type, const char *value);
97 
98 void orte_info_do_arch(void);
99 void orte_info_do_hostname(void);
100 void orte_info_do_config(bool want_all);
101 
102 /*
103  * Output-related functions
104  */
105 void orte_info_out(const char *pretty_message,
106  const char *plain_message,
107  const char *value);
108 void orte_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;
120 
121 extern opal_pointer_array_t component_map;
122 
123 void orte_info_open_components(void);
124 void orte_info_close_components(void);
125 
126 END_C_DECLS
127 
128 #endif /* ORTE_INFO_H */
dynamic pointer array
Definition: opal_pointer_array.h:45
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
See opal_bitmap.h for an explanation of why there is a split between OPAL and ORTE for this generic c...
Top-level interface for all MCA components.
Definition: opal_list.h:98
Definition: cmd_line.h:126
General command line parsing facility for use throughout Open MPI.
Definition: opal_list.h:147
Definition: orte-info.h:114
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236