File indexing completed on 2026-05-05 08:40:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef HWLOC_CONFIG_H
0014 #define HWLOC_CONFIG_H
0015
0016 #define HWLOC_VERSION "2.13.0"
0017 #define HWLOC_VERSION_MAJOR 2
0018 #define HWLOC_VERSION_MINOR 13
0019 #define HWLOC_VERSION_RELEASE 0
0020 #define HWLOC_VERSION_GREEK ""
0021
0022 #define HWLOC_PCI_COMPONENT_BUILTIN 1
0023
0024
0025
0026
0027
0028
0029 #define HWLOC_XML_LIBXML_COMPONENT_BUILTIN 1
0030
0031 #if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
0032 # define __hwloc_restrict __restrict
0033 #else
0034 # if __STDC_VERSION__ >= 199901L
0035 # define __hwloc_restrict restrict
0036 # else
0037 # define __hwloc_restrict
0038 # endif
0039 #endif
0040
0041
0042
0043 #if defined(c_plusplus) || defined(__cplusplus)
0044 # define __hwloc_inline inline
0045 #elif defined(_MSC_VER) || defined(__HP_cc)
0046 # define __hwloc_inline __inline
0047 #else
0048 # define __hwloc_inline __inline__
0049 #endif
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 #if defined(__cplusplus) && \
0060 (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR >= 4))
0061 #define GXX_ABOVE_3_4 1
0062 #else
0063 #define GXX_ABOVE_3_4 0
0064 #endif
0065
0066 #if !defined(__cplusplus) && \
0067 (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
0068 #define GCC_ABOVE_2_95 1
0069 #else
0070 #define GCC_ABOVE_2_95 0
0071 #endif
0072
0073 #if !defined(__cplusplus) && \
0074 (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
0075 #define GCC_ABOVE_2_96 1
0076 #else
0077 #define GCC_ABOVE_2_96 0
0078 #endif
0079
0080 #if !defined(__cplusplus) && \
0081 (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
0082 #define GCC_ABOVE_3_3 1
0083 #else
0084 #define GCC_ABOVE_3_3 0
0085 #endif
0086
0087 #if !defined(__cplusplus) && \
0088 (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
0089 #define GCC_ABOVE_3_4 1
0090 #else
0091 #define GCC_ABOVE_3_4 0
0092 #endif
0093
0094
0095 #ifdef HWLOC_HAVE_ATTRIBUTE_UNUSED
0096 #define __HWLOC_HAVE_ATTRIBUTE_UNUSED HWLOC_HAVE_ATTRIBUTE_UNUSED
0097 #elif defined(__GNUC__)
0098 # define __HWLOC_HAVE_ATTRIBUTE_UNUSED (GXX_ABOVE_3_4 || GCC_ABOVE_2_95)
0099 #else
0100 # define __HWLOC_HAVE_ATTRIBUTE_UNUSED 0
0101 #endif
0102 #if __HWLOC_HAVE_ATTRIBUTE_UNUSED
0103 # define __hwloc_attribute_unused __attribute__((__unused__))
0104 #else
0105 # define __hwloc_attribute_unused
0106 #endif
0107
0108 #ifdef HWLOC_HAVE_ATTRIBUTE_MALLOC
0109 #define __HWLOC_HAVE_ATTRIBUTE_MALLOC HWLOC_HAVE_ATTRIBUTE_MALLOC
0110 #elif defined(__GNUC__)
0111 # define __HWLOC_HAVE_ATTRIBUTE_MALLOC (GXX_ABOVE_3_4 || GCC_ABOVE_2_96)
0112 #else
0113 # define __HWLOC_HAVE_ATTRIBUTE_MALLOC 0
0114 #endif
0115 #if __HWLOC_HAVE_ATTRIBUTE_MALLOC
0116 # define __hwloc_attribute_malloc __attribute__((__malloc__))
0117 #else
0118 # define __hwloc_attribute_malloc
0119 #endif
0120
0121 #ifdef HWLOC_HAVE_ATTRIBUTE_CONST
0122 #define __HWLOC_HAVE_ATTRIBUTE_CONST HWLOC_HAVE_ATTRIBUTE_CONST
0123 #elif defined(__GNUC__)
0124 # define __HWLOC_HAVE_ATTRIBUTE_CONST (GXX_ABOVE_3_4 || GCC_ABOVE_2_95)
0125 #else
0126 # define __HWLOC_HAVE_ATTRIBUTE_CONST 0
0127 #endif
0128 #if __HWLOC_HAVE_ATTRIBUTE_CONST
0129 # define __hwloc_attribute_const __attribute__((__const__))
0130 #else
0131 # define __hwloc_attribute_const
0132 #endif
0133
0134 #ifdef HWLOC_HAVE_ATTRIBUTE_PURE
0135 #define __HWLOC_HAVE_ATTRIBUTE_PURE HWLOC_HAVE_ATTRIBUTE_PURE
0136 #elif defined(__GNUC__)
0137 # define __HWLOC_HAVE_ATTRIBUTE_PURE (GXX_ABOVE_3_4 || GCC_ABOVE_2_96)
0138 #else
0139 # define __HWLOC_HAVE_ATTRIBUTE_PURE 0
0140 #endif
0141 #if __HWLOC_HAVE_ATTRIBUTE_PURE
0142 # define __hwloc_attribute_pure __attribute__((__pure__))
0143 #else
0144 # define __hwloc_attribute_pure
0145 #endif
0146
0147 #ifndef __hwloc_attribute_deprecated
0148 #ifdef HWLOC_HAVE_ATTRIBUTE_DEPRECATED
0149 #define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED HWLOC_HAVE_ATTRIBUTE_DEPRECATED
0150 #elif defined(__GNUC__)
0151 # define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED (GXX_ABOVE_3_4 || GCC_ABOVE_3_3)
0152 #else
0153 # define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED 0
0154 #endif
0155 #if __HWLOC_HAVE_ATTRIBUTE_DEPRECATED
0156 # define __hwloc_attribute_deprecated __attribute__((__deprecated__))
0157 #else
0158 # define __hwloc_attribute_deprecated
0159 #endif
0160 #endif
0161
0162 #ifdef HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
0163 #define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
0164 #elif defined(__GNUC__)
0165 # define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS (GXX_ABOVE_3_4 || GCC_ABOVE_3_3)
0166 #else
0167 # define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS 0
0168 #endif
0169 #if __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
0170 # define __hwloc_attribute_may_alias __attribute__((__may_alias__))
0171 #else
0172 # define __hwloc_attribute_may_alias
0173 #endif
0174
0175 #ifdef HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT
0176 #define __HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT
0177 #elif defined(__GNUC__)
0178 # define __HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT (GXX_ABOVE_3_4 || GCC_ABOVE_3_4)
0179 #else
0180 # define __HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT 0
0181 #endif
0182 #if __HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT
0183 # define __hwloc_attribute_warn_unused_result __attribute__((__warn_unused_result__))
0184 #else
0185 # define __hwloc_attribute_warn_unused_result
0186 #endif
0187
0188 #ifdef HWLOC_C_HAVE_VISIBILITY
0189 # if HWLOC_C_HAVE_VISIBILITY
0190 # define HWLOC_DECLSPEC __attribute__((__visibility__("default")))
0191 # else
0192 # define HWLOC_DECLSPEC
0193 # endif
0194 #else
0195 # define HWLOC_DECLSPEC
0196 #endif
0197
0198
0199 #define HWLOC_LINUX_SYS 1
0200
0201
0202 #define HWLOC_HAVE_CPU_SET 1
0203
0204
0205
0206 #define hwloc_pid_t pid_t
0207 #define hwloc_thread_t pthread_t
0208
0209 #ifdef HWLOC_HAVE_WINDOWS_H
0210
0211 # include <windows.h>
0212 typedef DWORDLONG hwloc_uint64_t;
0213
0214 #else
0215
0216 # ifdef hwloc_thread_t
0217 # include <pthread.h>
0218 # endif
0219
0220
0221 # define HWLOC_HAVE_STDINT_H 1
0222
0223 # include <unistd.h>
0224 # ifdef HWLOC_HAVE_STDINT_H
0225 # include <stdint.h>
0226 # endif
0227 typedef uint64_t hwloc_uint64_t;
0228
0229 #endif
0230
0231
0232
0233
0234
0235 #define HWLOC_SYM_TRANSFORM 0
0236
0237
0238 #define HWLOC_SYM_PREFIX hwloc_
0239
0240
0241 #define HWLOC_SYM_PREFIX_CAPS HWLOC_
0242
0243 #endif