root/opal/mca/btl/self/btl_self.h

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

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2009 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
  14  *                         reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 /**
  22  * @file
  23  */
  24 #ifndef MCA_BTL_SELF_H
  25 #define MCA_BTL_SELF_H
  26 
  27 #include "opal_config.h"
  28 
  29 #include <stdlib.h>
  30 #ifdef HAVE_SYS_TYPES_H
  31 #include <sys/types.h>
  32 #endif  /* HAVE_SYS_TYPES_H */
  33 
  34 #include "opal/mca/btl/btl.h"
  35 #include "opal/mca/btl/base/base.h"
  36 
  37 BEGIN_C_DECLS
  38 
  39 #define MCA_BTL_SELF_MAX_INLINE_SIZE 128
  40 
  41 /**
  42  * Shared Memory (SELF) BTL module.
  43  */
  44 struct mca_btl_self_component_t {
  45     mca_btl_base_component_3_0_0_t super;  /**< base BTL component */
  46     int free_list_num;                     /**< initial size of free lists */
  47     int free_list_max;                     /**< maximum size of free lists */
  48     int free_list_inc;                     /**< number of elements to alloc when growing free lists */
  49     opal_free_list_t self_frags_eager;     /**< free list of self first */
  50     opal_free_list_t self_frags_send;      /**< free list of self second */
  51     opal_free_list_t self_frags_rdma;      /**< free list of self second */
  52 };
  53 typedef struct mca_btl_self_component_t mca_btl_self_component_t;
  54 OPAL_MODULE_DECLSPEC extern mca_btl_self_component_t mca_btl_self_component;
  55 
  56 extern mca_btl_base_module_t mca_btl_self;
  57 
  58 END_C_DECLS
  59 
  60 #endif
  61 

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