Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:11:35

0001 /* include/hwloc/autogen/config.h.  Generated from config.h.in by configure.  */
0002 /* -*- c -*-
0003  * Copyright © 2009 CNRS
0004  * Copyright © 2009-2022 Inria.  All rights reserved.
0005  * Copyright © 2009-2012 Université Bordeaux
0006  * Copyright © 2009-2011 Cisco Systems, Inc.  All rights reserved.
0007  * See COPYING in top-level directory.
0008  */
0009 
0010 /* The configuration file */
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 /* #undef HWLOC_OPENCL_COMPONENT_BUILTIN */
0023 /* #undef HWLOC_CUDA_COMPONENT_BUILTIN */
0024 /* #undef HWLOC_NVML_COMPONENT_BUILTIN */
0025 /* #undef HWLOC_RSMI_COMPONENT_BUILTIN */
0026 /* #undef HWLOC_LEVELZERO_COMPONENT_BUILTIN */
0027 /* #undef HWLOC_GL_COMPONENT_BUILTIN */
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 /* Note that if we're compiling C++, then just use the "inline"
0041    keyword, since it's part of C++ */
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  * Note: this is public.  We can not assume anything from the compiler used
0052  * by the application and thus the HWLOC_HAVE_* macros below are not
0053  * fetched from the autoconf result here. We only automatically use a few
0054  * well-known easy cases.
0055  */
0056 
0057 /* Some handy constants to make the logic below a little more readable */
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 /* Maybe before gcc 2.95 too */
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 /* allow the user to disable these warnings by defining this macro to nothing */
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 /* Defined to 1 on Linux */
0198 #define HWLOC_LINUX_SYS 1
0199 
0200 /* Defined to 1 if the CPU_SET macro works */
0201 #define HWLOC_HAVE_CPU_SET 1
0202 
0203 /* Defined to 1 if you have the `windows.h' header. */
0204 /* #undef HWLOC_HAVE_WINDOWS_H */
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 /* HWLOC_HAVE_WINDOWS_H */
0214 
0215 #  ifdef hwloc_thread_t
0216 #    include <pthread.h>
0217 #  endif /* hwloc_thread_t */
0218 
0219 /* Defined to 1 if you have the <stdint.h> header file. */
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 /* HWLOC_HAVE_WINDOWS_H */
0229 
0230 /* Define to 1 if --enable-32bits-pci-domain is called. */
0231 /* #undef HWLOC_HAVE_32BITS_PCI_DOMAIN */
0232 
0233 /* Whether we need to re-define all the hwloc public symbols or not */
0234 #define HWLOC_SYM_TRANSFORM 0
0235 
0236 /* The hwloc symbol prefix */
0237 #define HWLOC_SYM_PREFIX hwloc_
0238 
0239 /* The hwloc symbol prefix in all caps */
0240 #define HWLOC_SYM_PREFIX_CAPS HWLOC_
0241 
0242 #endif /* HWLOC_CONFIG_H */