root/orte/util/comm/comm.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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                                                  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

/* [<][>][^][v][top][bottom][index][help] */