File: orte-info.h

package info (click to toggle)
openmpi 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 99,912 kB
  • ctags: 55,589
  • sloc: ansic: 525,999; f90: 18,307; makefile: 12,062; sh: 6,583; java: 6,278; asm: 3,515; cpp: 2,227; perl: 2,136; python: 1,350; lex: 734; fortran: 52; tcl: 12
file content (127 lines) | stat: -rw-r--r-- 4,092 bytes parent folder | download | duplicates (4)
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
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
 * Copyright (c) 2004-2009 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 (c) 2007-2010 Cisco Systems, Inc.  All rights reserved.
 * Copyright (c) 2015      Research Organization for Information Science
 *                         and Technology (RIST). All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef ORTE_INFO_TOOL_H
#define ORTE_INFO_TOOL_H
#include "orte_config.h"

#include "opal/class/opal_list.h"
#include "opal/class/opal_pointer_array.h"
#include "opal/util/cmd_line.h"
#include "opal/mca/mca.h"

BEGIN_C_DECLS

/*
 * Globals
 */

extern bool orte_info_pretty;
extern opal_cmd_line_t *orte_info_cmd_line;

extern const char *orte_info_type_all;
extern const char *orte_info_type_opal;
extern const char *orte_info_type_base;

extern opal_pointer_array_t mca_types;


/*
 * Version-related strings and functions
 */

extern const char *orte_info_ver_full;
extern const char *orte_info_ver_major;
extern const char *orte_info_ver_minor;
extern const char *orte_info_ver_release;
extern const char *orte_info_ver_greek;
extern const char *orte_info_ver_svn;

void orte_info_do_version(bool want_all, opal_cmd_line_t *cmd_line);
void orte_info_show_orte_version(const char *scope);
void orte_info_show_component_version(const char *type_name,
                                      const char *component_name,
                                      const char *scope,
                                      const char *ver_type);

/*
 * Parameter/configuration-related functions
 */

extern const char *orte_info_component_all;
extern const char *orte_info_param_all;

extern const char *orte_info_path_prefix;
extern const char *orte_info_path_bindir;
extern const char *orte_info_path_libdir;
extern const char *orte_info_path_incdir;
extern const char *orte_info_path_mandir;
extern const char *orte_info_path_pkglibdir;
extern const char *orte_info_path_sysconfdir;
extern const char *orte_info_path_exec_prefix;
extern const char *orte_info_path_sbindir;
extern const char *orte_info_path_libexecdir;
extern const char *orte_info_path_datarootdir;
extern const char *orte_info_path_datadir;
extern const char *orte_info_path_sharedstatedir;
extern const char *orte_info_path_localstatedir;
extern const char *orte_info_path_infodir;
extern const char *orte_info_path_pkgdatadir;
extern const char *orte_info_path_pkgincludedir;

void orte_info_do_params(bool want_all, bool want_internal);
void orte_info_show_mca_params(const char *type, const char *component,
                               bool want_internal);

void orte_info_do_path(bool want_all, opal_cmd_line_t *cmd_line);
void orte_info_show_path(const char *type, const char *value);

void orte_info_do_arch(void);
void orte_info_do_hostname(void);
void orte_info_do_config(bool want_all);

/*
 * Output-related functions
 */
void orte_info_out(const char *pretty_message,
                   const char *plain_message,
                   const char *value);
void orte_info_out_int(const char *pretty_message,
                       const char *plain_message,
                       int value);
/*
 * Component-related functions
 */
typedef struct {
    opal_list_item_t super;
    char *type;
    opal_list_t *components;
} orte_info_component_map_t;
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_info_component_map_t);

extern opal_pointer_array_t orte_component_map;

void orte_info_components_open(void);
void orte_info_components_close(void);

END_C_DECLS

#endif /* ORTE_INFO_H */