File: base.h

package info (click to toggle)
openmpi 1.6.5-9.1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 91,628 kB
  • ctags: 44,305
  • sloc: ansic: 408,966; cpp: 44,454; sh: 27,828; makefile: 10,486; asm: 3,882; python: 1,239; lex: 805; perl: 549; csh: 253; fortran: 232; f90: 126; tcl: 12
file content (72 lines) | stat: -rw-r--r-- 1,747 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
/*
 * Copyright (c) 2009      Cisco Systems, Inc.  All rights reserved. 
 *
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 *
 */

#ifndef OPAL_SYSINFO_BASE_H
#define OPAL_SYSINFO_BASE_H

#include "opal_config.h"

#include "opal/mca/sysinfo/sysinfo.h"

/*
 * Global functions for MCA overall sysinfo open and close
 */

BEGIN_C_DECLS

/**
 * Initialize the sysinfo MCA framework
 *
 * @retval OPAL_SUCCESS Upon success
 * @retval OPAL_ERROR Upon failure
 *
 * This must be the first function invoked in the sysinfo MCA
 * framework.  It initializes the sysinfo MCA framework, finds
 * and opens sysinfo components, etc.
 *
 * This function is invoked during opal_init().
 */
OPAL_DECLSPEC int opal_sysinfo_base_open(void);

/**
 * Close the sysinfo MCA framework
 *
 * @retval OPAL_SUCCESS Upon success
 * @retval OPAL_ERROR Upon failure
 *
 * This must be the last function invoked in the sysinfo MCA
 * framework.
 *
 * This function is invoked during opal_finalize().
 */
OPAL_DECLSPEC int opal_sysinfo_base_close(void);

/**
 * Select all available components.
 *
 * @return OPAL_SUCCESS Upon success.
 * @return OPAL_ERROR Upon other failure.
 *
 * At the end of this process, we'll have a list of all available
 * components. If the list is empty, that is okay too. All
 * available components will have their init function called.
 */
OPAL_DECLSPEC int opal_sysinfo_base_select(void);

OPAL_DECLSPEC extern int opal_sysinfo_base_output;
OPAL_DECLSPEC extern opal_list_t opal_sysinfo_base_components_opened;
OPAL_DECLSPEC extern opal_list_t opal_sysinfo_avail_modules;
OPAL_DECLSPEC extern bool opal_sysinfo_initialized;
OPAL_DECLSPEC extern bool opal_sysinfo_selected;

END_C_DECLS

#endif /* OPAL_SYSINFO_BASE_H */