OpenMPI 0.1.1

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

- File List
- Globals

comm.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2011 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$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18
19 /** @file:
20 *
21 * Populates global structure with system-specific information.
22 *
23 * Notes: add limits.h, compute size of integer and other types via sizeof(type)*CHAR_BIT
24 *
25 */
26
27 #ifndef _ORTE_UTIL_COMM_H_
28 #define _ORTE_UTIL_COMM_H_
29
30 #include "orte_config.h"
31 #include "orte/types.h"
32
33 #include "orte/runtime/orte_globals.h"
34
35 BEGIN_C_DECLS
36
37 typedef uint8_t orte_comm_event_t;
38 #define ORTE_COMM_EVENT OPAL_UINT8
39
40 #define ORTE_COMM_EVENT_ALLOCATE 0x01
41 #define ORTE_COMM_EVENT_MAP 0x02
42 #define ORTE_COMM_EVENT_LAUNCH 0x04
43
44 ORTE_DECLSPEC int orte_util_comm_connect_tool(char *uri);
45
46 ORTE_DECLSPEC int orte_util_comm_report_event(orte_comm_event_t ev);
47
48 ORTE_DECLSPEC int orte_util_comm_query_job_info(const orte_process_name_t *hnp, orte_jobid_t job,
49 int *num_jobs, orte_job_t ***job_info_array);
50
51 ORTE_DECLSPEC int orte_util_comm_query_node_info(const orte_process_name_t *hnp, char *node,
52 int *num_nodes, orte_node_t ***node_info_array);
53
54 ORTE_DECLSPEC int orte_util_comm_query_proc_info(const orte_process_name_t *hnp, orte_jobid_t job, orte_vpid_t vpid,
55 #if ORTE_ENABLE_EPOCH
56 orte_epoch_t epoch,
57 #endif
58 int *num_procs, orte_proc_t ***proc_info_array);
59
60 ORTE_DECLSPEC int orte_util_comm_spawn_job(const orte_process_name_t *hnp, orte_job_t *jdata);
61
62 ORTE_DECLSPEC int orte_util_comm_terminate_job(const orte_process_name_t *hnp, orte_jobid_t job);
63
64 ORTE_DECLSPEC int orte_util_comm_halt_vm(const orte_process_name_t *hnp);
65
66 END_C_DECLS
67 #endif
orte_jobid_t
uint32_t orte_jobid_t
Set the allowed range for ids in each space.
Definition: types.h:76
orte_process_name_t
Definition: types.h:146
types.h
orte_proc_t
Definition: orte_globals.h:386
orte_job_t
Definition: orte_globals.h:316
orte_globals.h
Global params for OpenRTE.
orte_node_t
Definition: orte_globals.h:254