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 #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                                                  int *num_procs, orte_proc_t ***proc_info_array);
  56 
  57 ORTE_DECLSPEC int orte_util_comm_spawn_job(const orte_process_name_t *hnp, orte_job_t *jdata);
  58 
  59 ORTE_DECLSPEC int orte_util_comm_terminate_job(const orte_process_name_t *hnp, orte_jobid_t job);
  60 
  61 ORTE_DECLSPEC int orte_util_comm_halt_vm(const orte_process_name_t *hnp);
  62 
  63 END_C_DECLS
  64 #endif