root/opal/mca/pmix/pmix4x/pmix/src/hwloc/hwloc-internal.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2011-2017 Cisco Systems, Inc.  All rights reserved
   3  * Copyright (c) 2016      Research Organization for Information Science
   4  *                         and Technology (RIST). All rights reserved.
   5  *
   6  * Copyright (c) 2016-2019 Intel, Inc.  All rights reserved.
   7  * $COPYRIGHT$
   8  *
   9  * Additional copyrights may follow
  10  *
  11  * $HEADER$
  12  *
  13  * this file is included in the rest of
  14  * the code base via pmix/hwloc/hwloc-internal.h.
  15  */
  16 
  17 #ifndef PMIX_HWLOC_INTERNAL_H
  18 #define PMIX_HWLOC_INTERNAL_H
  19 
  20 
  21 #include <src/include/pmix_config.h>
  22 #include <pmix_common.h>
  23 
  24 #if PMIX_HAVE_HWLOC
  25 #include PMIX_HWLOC_HEADER
  26 
  27 #if HWLOC_API_VERSION < 0x00010b00
  28 #define HWLOC_OBJ_NUMANODE HWLOC_OBJ_NODE
  29 #define HWLOC_OBJ_PACKAGE HWLOC_OBJ_SOCKET
  30 #endif
  31 
  32 extern hwloc_topology_t pmix_hwloc_topology;
  33 #endif
  34 
  35 BEGIN_C_DECLS
  36 
  37 typedef enum {
  38     VM_HOLE_NONE = -1,
  39     VM_HOLE_BEGIN = 0,        /* use hole at the very beginning */
  40     VM_HOLE_AFTER_HEAP = 1,   /* use hole right after heap */
  41     VM_HOLE_BEFORE_STACK = 2, /* use hole right before stack */
  42     VM_HOLE_BIGGEST = 3,      /* use biggest hole */
  43     VM_HOLE_IN_LIBS = 4,      /* use biggest hole between heap and stack */
  44     VM_HOLE_CUSTOM = 5,       /* use given address if available */
  45 } pmix_hwloc_vm_hole_kind_t;
  46 
  47 typedef enum {
  48     VM_MAP_FILE = 0,
  49     VM_MAP_ANONYMOUS = 1,
  50     VM_MAP_HEAP = 2,
  51     VM_MAP_STACK = 3,
  52     VM_MAP_OTHER = 4 /* vsyscall/vdso/vvar shouldn't occur since we stop after stack */
  53 } pmix_hwloc_vm_map_kind_t;
  54 
  55 PMIX_EXPORT pmix_status_t pmix_hwloc_get_topology(pmix_info_t *info, size_t ninfo);
  56 PMIX_EXPORT void pmix_hwloc_cleanup(void);
  57 
  58 END_C_DECLS
  59 
  60 #endif /* PMIX_HWLOC_INTERNAL_H */

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