root/orte/runtime/data_type_support/orte_dt_support.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2005 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 (c) 2011-2013 Los Alamos National Security, LLC.
  13  *                         All rights reserved.
  14  * Copyright (c) 2014      Intel, Inc. All rights reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 /** @file:
  22  */
  23 
  24 #ifndef ORTE_DT_SUPPORT_H
  25 #define ORTE_DT_SUPPORT_H
  26 
  27 /*
  28  * includes
  29  */
  30 #include "orte_config.h"
  31 #include "orte/constants.h"
  32 #include "orte/types.h"
  33 
  34 #include "opal/dss/dss_types.h"
  35 #include "orte/mca/grpcomm/grpcomm.h"
  36 #include "orte/mca/odls/odls_types.h"
  37 #include "orte/mca/plm/plm_types.h"
  38 #include "orte/mca/rmaps/rmaps_types.h"
  39 #include "orte/mca/rml/rml_types.h"
  40 #include "orte/mca/iof/iof_types.h"
  41 
  42 #include "orte/runtime/orte_globals.h"
  43 
  44 
  45 BEGIN_C_DECLS
  46 
  47 /** Data type compare functions */
  48 int orte_dt_compare_std_cntr(orte_std_cntr_t *value1, orte_std_cntr_t *value2, opal_data_type_t type);
  49 int orte_dt_compare_job(orte_job_t *value1, orte_job_t *value2, opal_data_type_t type);
  50 int orte_dt_compare_node(orte_node_t *value1, orte_node_t *value2, opal_data_type_t type);
  51 int orte_dt_compare_proc(orte_proc_t *value1, orte_proc_t *value2, opal_data_type_t type);
  52 int orte_dt_compare_app_context(orte_app_context_t *value1, orte_app_context_t *value2, opal_data_type_t type);
  53 int orte_dt_compare_exit_code(orte_exit_code_t *value1,
  54                                     orte_exit_code_t *value2,
  55                                     opal_data_type_t type);
  56 int orte_dt_compare_node_state(orte_node_state_t *value1,
  57                                      orte_node_state_t *value2,
  58                                      orte_node_state_t type);
  59 int orte_dt_compare_proc_state(orte_proc_state_t *value1,
  60                                      orte_proc_state_t *value2,
  61                                      orte_proc_state_t type);
  62 int orte_dt_compare_job_state(orte_job_state_t *value1,
  63                                     orte_job_state_t *value2,
  64                                     orte_job_state_t type);
  65 int orte_dt_compare_map(orte_job_map_t *value1, orte_job_map_t *value2, opal_data_type_t type);
  66 int orte_dt_compare_tags(orte_rml_tag_t *value1,
  67                          orte_rml_tag_t *value2,
  68                          opal_data_type_t type);
  69 int orte_dt_compare_daemon_cmd(orte_daemon_cmd_flag_t *value1, orte_daemon_cmd_flag_t *value2, opal_data_type_t type);
  70 int orte_dt_compare_iof_tag(orte_iof_tag_t *value1, orte_iof_tag_t *value2, opal_data_type_t type);
  71 int orte_dt_compare_attr(orte_attribute_t *value1, orte_attribute_t *value2, opal_data_type_t type);
  72 int orte_dt_compare_sig(orte_grpcomm_signature_t *value1, orte_grpcomm_signature_t *value2, opal_data_type_t type);
  73 
  74 /** Data type copy functions */
  75 int orte_dt_copy_std_cntr(orte_std_cntr_t **dest, orte_std_cntr_t *src, opal_data_type_t type);
  76 int orte_dt_copy_job(orte_job_t **dest, orte_job_t *src, opal_data_type_t type);
  77 int orte_dt_copy_node(orte_node_t **dest, orte_node_t *src, opal_data_type_t type);
  78 int orte_dt_copy_proc(orte_proc_t **dest, orte_proc_t *src, opal_data_type_t type);
  79 int orte_dt_copy_app_context(orte_app_context_t **dest, orte_app_context_t *src, opal_data_type_t type);
  80 int orte_dt_copy_proc_state(orte_proc_state_t **dest, orte_proc_state_t *src, opal_data_type_t type);
  81 int orte_dt_copy_job_state(orte_job_state_t **dest, orte_job_state_t *src, opal_data_type_t type);
  82 int orte_dt_copy_node_state(orte_node_state_t **dest, orte_node_state_t *src, opal_data_type_t type);
  83 int orte_dt_copy_exit_code(orte_exit_code_t **dest, orte_exit_code_t *src, opal_data_type_t type);
  84 int orte_dt_copy_map(orte_job_map_t **dest, orte_job_map_t *src, opal_data_type_t type);
  85 int orte_dt_copy_tag(orte_rml_tag_t **dest,
  86                            orte_rml_tag_t *src,
  87                            opal_data_type_t type);
  88 int orte_dt_copy_daemon_cmd(orte_daemon_cmd_flag_t **dest, orte_daemon_cmd_flag_t *src, opal_data_type_t type);
  89 int orte_dt_copy_iof_tag(orte_iof_tag_t **dest, orte_iof_tag_t *src, opal_data_type_t type);
  90 int orte_dt_copy_attr(orte_attribute_t **dest, orte_attribute_t *src, opal_data_type_t type);
  91 int orte_dt_copy_sig(orte_grpcomm_signature_t **dest, orte_grpcomm_signature_t *src, opal_data_type_t type);
  92 
  93 /** Data type pack functions */
  94 int orte_dt_pack_std_cntr(opal_buffer_t *buffer, const void *src,
  95                             int32_t num_vals, opal_data_type_t type);
  96 int orte_dt_pack_job(opal_buffer_t *buffer, const void *src,
  97                      int32_t num_vals, opal_data_type_t type);
  98 int orte_dt_pack_node(opal_buffer_t *buffer, const void *src,
  99                       int32_t num_vals, opal_data_type_t type);
 100 int orte_dt_pack_proc(opal_buffer_t *buffer, const void *src,
 101                       int32_t num_vals, opal_data_type_t type);
 102 int orte_dt_pack_app_context(opal_buffer_t *buffer, const void *src,
 103                                    int32_t num_vals, opal_data_type_t type);
 104 int orte_dt_pack_exit_code(opal_buffer_t *buffer, const void *src,
 105                                  int32_t num_vals, opal_data_type_t type);
 106 int orte_dt_pack_node_state(opal_buffer_t *buffer, const void *src,
 107                                   int32_t num_vals, opal_data_type_t type);
 108 int orte_dt_pack_proc_state(opal_buffer_t *buffer, const void *src,
 109                                   int32_t num_vals, opal_data_type_t type);
 110 int orte_dt_pack_job_state(opal_buffer_t *buffer, const void *src,
 111                                  int32_t num_vals, opal_data_type_t type);
 112 int orte_dt_pack_map(opal_buffer_t *buffer, const void *src,
 113                              int32_t num_vals, opal_data_type_t type);
 114 int orte_dt_pack_tag(opal_buffer_t *buffer,
 115                            const void *src,
 116                            int32_t num_vals,
 117                            opal_data_type_t type);
 118 int orte_dt_pack_daemon_cmd(opal_buffer_t *buffer, const void *src,
 119                           int32_t num_vals, opal_data_type_t type);
 120 int orte_dt_pack_iof_tag(opal_buffer_t *buffer, const void *src, int32_t num_vals,
 121                          opal_data_type_t type);
 122 int orte_dt_pack_attr(opal_buffer_t *buffer, const void *src, int32_t num_vals,
 123                       opal_data_type_t type);
 124 int orte_dt_pack_sig(opal_buffer_t *buffer, const void *src, int32_t num_vals,
 125                      opal_data_type_t type);
 126 
 127 /** Data type print functions */
 128 int orte_dt_std_print(char **output, char *prefix, void *src, opal_data_type_t type);
 129 int orte_dt_print_job(char **output, char *prefix, orte_job_t *src, opal_data_type_t type);
 130 int orte_dt_print_node(char **output, char *prefix, orte_node_t *src, opal_data_type_t type);
 131 int orte_dt_print_proc(char **output, char *prefix, orte_proc_t *src, opal_data_type_t type);
 132 int orte_dt_print_app_context(char **output, char *prefix, orte_app_context_t *src, opal_data_type_t type);
 133 int orte_dt_print_map(char **output, char *prefix, orte_job_map_t *src, opal_data_type_t type);
 134 int orte_dt_print_attr(char **output, char *prefix, orte_attribute_t *src, opal_data_type_t type);
 135 int orte_dt_print_sig(char **output, char *prefix, orte_grpcomm_signature_t *src, opal_data_type_t type);
 136 
 137 /** Data type unpack functions */
 138 int orte_dt_unpack_std_cntr(opal_buffer_t *buffer, void *dest,
 139                         int32_t *num_vals, opal_data_type_t type);
 140 int orte_dt_unpack_job(opal_buffer_t *buffer, void *dest,
 141                        int32_t *num_vals, opal_data_type_t type);
 142 int orte_dt_unpack_node(opal_buffer_t *buffer, void *dest,
 143                         int32_t *num_vals, opal_data_type_t type);
 144 int orte_dt_unpack_proc(opal_buffer_t *buffer, void *dest,
 145                         int32_t *num_vals, opal_data_type_t type);
 146 int orte_dt_unpack_app_context(opal_buffer_t *buffer, void *dest,
 147                                      int32_t *num_vals, opal_data_type_t type);
 148 int orte_dt_unpack_exit_code(opal_buffer_t *buffer, void *dest,
 149                                    int32_t *num_vals, opal_data_type_t type);
 150 int orte_dt_unpack_node_state(opal_buffer_t *buffer, void *dest,
 151                                     int32_t *num_vals, opal_data_type_t type);
 152 int orte_dt_unpack_proc_state(opal_buffer_t *buffer, void *dest,
 153                                     int32_t *num_vals, opal_data_type_t type);
 154 int orte_dt_unpack_job_state(opal_buffer_t *buffer, void *dest,
 155                                    int32_t *num_vals, opal_data_type_t type);
 156 int orte_dt_unpack_map(opal_buffer_t *buffer, void *dest,
 157                                int32_t *num_vals, opal_data_type_t type);
 158 int orte_dt_unpack_tag(opal_buffer_t *buffer,
 159                              void *dest,
 160                              int32_t *num_vals,
 161                              opal_data_type_t type);
 162 int orte_dt_unpack_daemon_cmd(opal_buffer_t *buffer, void *dest,
 163                             int32_t *num_vals, opal_data_type_t type);
 164 int orte_dt_unpack_iof_tag(opal_buffer_t *buffer, void *dest, int32_t *num_vals,
 165                            opal_data_type_t type);
 166 int orte_dt_unpack_attr(opal_buffer_t *buffer, void *dest, int32_t *num_vals,
 167                         opal_data_type_t type);
 168 int orte_dt_unpack_sig(opal_buffer_t *buffer, void *dest, int32_t *num_vals,
 169                        opal_data_type_t type);
 170 
 171 END_C_DECLS
 172 
 173 #endif

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