Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-05 08:40:16

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