root/orte/mca/odls/odls_types.h

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

INCLUDED FROM


   1 /* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   2  *                         University Research and Technology
   3  *                         Corporation.  All rights reserved.
   4  * Copyright (c) 2004-2011 The University of Tennessee and The University
   5  *                         of Tennessee Research Foundation.  All rights
   6  *                         reserved.
   7  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   8  *                         University of Stuttgart.  All rights reserved.
   9  * Copyright (c) 2004-2005 The Regents of the University of California.
  10  *                         All rights reserved.
  11  * Copyright (c) 2010-2011 Oak Ridge National Labs.  All rights reserved.
  12  * Copyright (c) 2011-2016 Cisco Systems, Inc.  All rights reserved.
  13  * Copyright (c) 2011-2012 Los Alamos National Security, LLC.
  14  *                         All rights reserved.
  15  * Copyright (c) 2014-2019 Intel, Inc.  All rights reserved.
  16  * Copyright (c) 2018      Research Organization for Information Science
  17  *                         and Technology (RIST). All rights reserved.
  18  * $COPYRIGHT$
  19  *
  20  * Additional copyrights may follow
  21  *
  22  * $HEADER$
  23  */
  24 /** @file:
  25  */
  26 
  27 #ifndef ORTE_MCA_ODLS_TYPES_H
  28 #define ORTE_MCA_ODLS_TYPES_H
  29 
  30 #include "orte_config.h"
  31 #include "orte/types.h"
  32 
  33 #include "opal/dss/dss_types.h"
  34 
  35 BEGIN_C_DECLS
  36 
  37 /* define the orted command flag type */
  38 typedef uint8_t orte_daemon_cmd_flag_t;
  39 #define ORTE_DAEMON_CMD_T   OPAL_UINT8
  40 
  41 
  42 /*
  43  * Definitions needed for communication
  44  */
  45 #define ORTE_DAEMON_CONTACT_QUERY_CMD       (orte_daemon_cmd_flag_t) 1
  46 #define ORTE_DAEMON_KILL_LOCAL_PROCS        (orte_daemon_cmd_flag_t) 2
  47 #define ORTE_DAEMON_SIGNAL_LOCAL_PROCS      (orte_daemon_cmd_flag_t) 3
  48 #define ORTE_DAEMON_ADD_LOCAL_PROCS         (orte_daemon_cmd_flag_t) 4
  49 #define ORTE_DAEMON_HEARTBEAT_CMD           (orte_daemon_cmd_flag_t) 6
  50 #define ORTE_DAEMON_EXIT_CMD                (orte_daemon_cmd_flag_t) 7
  51 #define ORTE_DAEMON_PROCESS_AND_RELAY_CMD   (orte_daemon_cmd_flag_t) 9
  52 #define ORTE_DAEMON_NULL_CMD                (orte_daemon_cmd_flag_t) 11
  53 
  54 /* commands for use by tools */
  55 #define ORTE_DAEMON_REPORT_JOB_INFO_CMD     (orte_daemon_cmd_flag_t) 14
  56 #define ORTE_DAEMON_REPORT_NODE_INFO_CMD    (orte_daemon_cmd_flag_t) 15
  57 #define ORTE_DAEMON_REPORT_PROC_INFO_CMD    (orte_daemon_cmd_flag_t) 16
  58 #define ORTE_DAEMON_SPAWN_JOB_CMD           (orte_daemon_cmd_flag_t) 17
  59 #define ORTE_DAEMON_TERMINATE_JOB_CMD       (orte_daemon_cmd_flag_t) 18
  60 #define ORTE_DAEMON_HALT_VM_CMD             (orte_daemon_cmd_flag_t) 19
  61 #define ORTE_DAEMON_HALT_DVM_CMD            (orte_daemon_cmd_flag_t) 20
  62 #define ORTE_DAEMON_REPORT_JOB_COMPLETE     (orte_daemon_cmd_flag_t) 21
  63 
  64 
  65 /* request proc resource usage */
  66 #define ORTE_DAEMON_TOP_CMD                 (orte_daemon_cmd_flag_t) 22
  67 
  68 /* bootstrap */
  69 #define ORTE_DAEMON_NAME_REQ_CMD            (orte_daemon_cmd_flag_t) 23
  70 #define ORTE_DAEMON_CHECKIN_CMD             (orte_daemon_cmd_flag_t) 24
  71 #define ORTE_TOOL_CHECKIN_CMD               (orte_daemon_cmd_flag_t) 25
  72 
  73 /* process msg command */
  74 #define ORTE_DAEMON_PROCESS_CMD             (orte_daemon_cmd_flag_t) 26
  75 
  76 /* process called "errmgr.abort_procs" */
  77 #define ORTE_DAEMON_ABORT_PROCS_CALLED      (orte_daemon_cmd_flag_t) 28
  78 
  79 /* nidmap for the DVM */
  80 #define ORTE_DAEMON_DVM_NIDMAP_CMD          (orte_daemon_cmd_flag_t) 29
  81 /* add procs for the DVM */
  82 #define ORTE_DAEMON_DVM_ADD_PROCS           (orte_daemon_cmd_flag_t) 30
  83 
  84 /* for debug purposes, get stack traces from all application procs */
  85 #define ORTE_DAEMON_GET_STACK_TRACES        (orte_daemon_cmd_flag_t) 31
  86 
  87 /* for memory profiling */
  88 #define ORTE_DAEMON_GET_MEMPROFILE          (orte_daemon_cmd_flag_t) 32
  89 
  90 /* request full topology string */
  91 #define ORTE_DAEMON_REPORT_TOPOLOGY_CMD     (orte_daemon_cmd_flag_t) 33
  92 
  93 /* tell DVM daemons to cleanup resources from job */
  94 #define ORTE_DAEMON_DVM_CLEANUP_JOB_CMD     (orte_daemon_cmd_flag_t) 34
  95 
  96 /* pass node info */
  97 #define ORTE_DAEMON_PASS_NODE_INFO_CMD      (orte_daemon_cmd_flag_t) 35
  98 
  99 /*
 100  * Struct written up the pipe from the child to the parent.
 101  */
 102 typedef struct {
 103     /* True if the child has died; false if this is just a warning to
 104        be printed. */
 105     bool fatal;
 106     /* Relevant only if fatal==true */
 107     int exit_status;
 108 
 109     /* Length of the strings that are written up the pipe after this
 110        struct */
 111     int file_str_len;
 112     int topic_str_len;
 113     int msg_str_len;
 114 } orte_odls_pipe_err_msg_t;
 115 
 116 /*
 117  * Max length of strings from the orte_odls_pipe_err_msg_t
 118  */
 119 #define ORTE_ODLS_MAX_FILE_LEN 511
 120 #define ORTE_ODLS_MAX_TOPIC_LEN ORTE_ODLS_MAX_FILE_LEN
 121 
 122 
 123 END_C_DECLS
 124 
 125 #endif

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