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