26 #ifndef _ORTE_PROC_INFO_H_
27 #define _ORTE_PROC_INFO_H_
29 #include "orte_config.h"
35 #ifdef HAVE_SYS_TYPES_H
36 #include <sys/types.h>
42 #include "opal/mca/hwloc/hwloc.h"
46 #define ORTE_MAX_HOSTNAME_SIZE 512
48 typedef uint32_t orte_proc_type_t;
49 #define ORTE_PROC_TYPE_NONE 0x0000
50 #define ORTE_PROC_SINGLETON 0x0001
51 #define ORTE_PROC_DAEMON 0x0002
52 #define ORTE_PROC_HNP 0x0004
53 #define ORTE_PROC_TOOL 0x0008
54 #define ORTE_PROC_NON_MPI 0x0010
55 #define ORTE_PROC_MPI 0x0020
56 #define ORTE_PROC_APP 0x0030
57 #define ORTE_PROC_CM 0x0040
58 #define ORTE_PROC_IOF_ENDPT 0x1000
59 #define ORTE_PROC_SCHEDULER 0x2000
61 #define ORTE_PROC_IS_SINGLETON (ORTE_PROC_SINGLETON & orte_process_info.proc_type)
62 #define ORTE_PROC_IS_DAEMON (ORTE_PROC_DAEMON & orte_process_info.proc_type)
63 #define ORTE_PROC_IS_HNP (ORTE_PROC_HNP & orte_process_info.proc_type)
64 #define ORTE_PROC_IS_TOOL (ORTE_PROC_TOOL & orte_process_info.proc_type)
65 #define ORTE_PROC_IS_NON_MPI (ORTE_PROC_NON_MPI & orte_process_info.proc_type)
66 #define ORTE_PROC_IS_MPI (ORTE_PROC_MPI & orte_process_info.proc_type)
67 #define ORTE_PROC_IS_APP (ORTE_PROC_APP & orte_process_info.proc_type)
68 #define ORTE_PROC_IS_CM (ORTE_PROC_CM & orte_process_info.proc_type)
69 #define ORTE_PROC_IS_IOF_ENDPT (ORTE_PROC_IOF_ENDPT & orte_process_info.proc_type)
70 #define ORTE_PROC_IS_SCHEDULER (ORTE_PROC_SCHEDULER & orte_process_info.proc_type)
117 opal_hwloc_level_t bind_level;
118 unsigned int bind_idx;
157 ORTE_DECLSPEC
int orte_proc_info(
void);
159 ORTE_DECLSPEC
int orte_proc_info_finalize(
void);
char * job_session_dir
Session directory for job.
Definition: proc_info.h:110
char * proc_session_dir
Session directory for the process.
Definition: proc_info.h:111
pid_t hnp_pid
hnp pid - used if singleton
Definition: proc_info.h:89
orte_vpid_t max_procs
Maximum number of processes ever in the job.
Definition: proc_info.h:92
opal_buffer_t * sync_buf
buffer to store sync response
Definition: proc_info.h:98
int num_nodes
number of nodes in the job
Definition: proc_info.h:94
uint16_t my_port
TCP port for out-of-band comm.
Definition: proc_info.h:99
Process information structure.
Definition: proc_info.h:82
char * sock_stderr
Path name to temp file for stderr.
Definition: proc_info.h:115
orte_process_name_t my_name
My official process name.
Definition: proc_info.h:83
char * my_daemon_uri
Contact info to local daemon.
Definition: proc_info.h:85
char * my_hnp_uri
Contact info for my hnp.
Definition: proc_info.h:87
orte_proc_type_t proc_type
Type of process.
Definition: proc_info.h:97
orte_node_rank_t my_node_rank
node rank
Definition: proc_info.h:101
orte_vpid_t num_daemons
number of daemons in system
Definition: proc_info.h:93
int32_t num_restarts
number of times this proc has restarted
Definition: proc_info.h:100
orte_process_name_t my_parent
Name of my parent (or my HNP if no parent was specified)
Definition: proc_info.h:88
orte_process_name_t my_daemon
Name of my local daemon.
Definition: proc_info.h:84
pid_t pid
Local process ID for this process.
Definition: proc_info.h:96
char * sock_stdout
Path name to temp file for stdout.
Definition: proc_info.h:114
ORTE_DECLSPEC orte_proc_info_t orte_process_info
Global process info descriptor.
Definition: proc_info.c:45
char * tmpdir_base
Base directory of the session dir tree.
Definition: proc_info.h:108
char * top_session_dir
Top-most directory of the session tree.
Definition: proc_info.h:109
orte_process_name_t my_hnp
Name of my hnp.
Definition: proc_info.h:86
char * nodename
string name for this node
Definition: proc_info.h:95
orte_app_idx_t app_num
our index into the app_context array
Definition: proc_info.h:90
Structure for holding a buffer to be used with the RML or OOB subsystems.
Definition: dss_types.h:159
orte_vpid_t num_procs
number of processes in this job
Definition: proc_info.h:91
char * sock_stdin
Path name to temp file for stdin.
Definition: proc_info.h:113