File: base.h

package info (click to toggle)
openmpi 3.1.3-11
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 118,572 kB
  • sloc: ansic: 628,972; f90: 17,993; makefile: 13,761; sh: 7,051; java: 6,360; perl: 3,215; cpp: 2,225; python: 1,350; lex: 988; fortran: 52; tcl: 12
file content (83 lines) | stat: -rw-r--r-- 2,059 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
/*
 * Copyright (c) 2014      Intel, Inc.  All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
/** @file:
 * rtc framework base functionality.
 */

#ifndef ORTE_MCA_RTC_BASE_H
#define ORTE_MCA_RTC_BASE_H

/*
 * includes
 */
#include "orte_config.h"
#include "orte/types.h"

#include "opal/class/opal_list.h"
#include "orte/mca/mca.h"

#include "orte/mca/rtc/rtc.h"

BEGIN_C_DECLS

/*
 * MCA Framework
 */
ORTE_DECLSPEC extern mca_base_framework_t orte_rtc_base_framework;
/* select a component */
ORTE_DECLSPEC    int orte_rtc_base_select(void);

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

/**
 * Struct to hold data global to the rtc framework
 */
typedef struct {
    /* list of selected modules */
    opal_list_t actives;
} orte_rtc_base_t;

/**
 * Global instance of rtc-wide framework data
 */
ORTE_DECLSPEC extern orte_rtc_base_t orte_rtc_base;

/**
 * Select an rtc component / module
 */
typedef struct {
    opal_list_item_t super;
    int pri;
    orte_rtc_base_module_t *module;
    mca_base_component_t *component;
} orte_rtc_base_selected_module_t;
OBJ_CLASS_DECLARATION(orte_rtc_base_selected_module_t);

ORTE_DECLSPEC void orte_rtc_base_assign(orte_job_t *jdata);
ORTE_DECLSPEC void orte_rtc_base_set(orte_job_t *jdata, orte_proc_t *proc,
                                     char ***env, int error_fd);
ORTE_DECLSPEC void orte_rtc_base_get_avail_vals(opal_list_t *vals);

/* Called from the child to send a warning show_help message up the
   pipe to the waiting parent. */
ORTE_DECLSPEC int orte_rtc_base_send_warn_show_help(int fd, const char *file,
                                                    const char *topic, ...);

/* Called from the child to send an error message up the pipe to the
   waiting parent. */
ORTE_DECLSPEC void orte_rtc_base_send_error_show_help(int fd, int exit_status,
                                                      const char *file,
                                                      const char *topic, ...);


END_C_DECLS

#endif