CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
203 lines
5.4 KiB
C
203 lines
5.4 KiB
C
/* include/hwloc/autogen/config.h. Generated from config.h.in by configure. */
|
|
/* -*- c -*-
|
|
* Copyright © 2009 CNRS
|
|
* Copyright © 2009-2014 Inria. All rights reserved.
|
|
* Copyright © 2009-2012 Université Bordeaux
|
|
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
|
|
* See COPYING in top-level directory.
|
|
*/
|
|
|
|
/* The configuration file */
|
|
|
|
#ifndef HWLOC_CONFIG_H
|
|
#define HWLOC_CONFIG_H
|
|
|
|
#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
|
|
# define __hwloc_restrict __restrict
|
|
#else
|
|
# if __STDC_VERSION__ >= 199901L
|
|
# define __hwloc_restrict restrict
|
|
# else
|
|
# define __hwloc_restrict
|
|
# endif
|
|
#endif
|
|
|
|
/* Note that if we're compiling C++, then just use the "inline"
|
|
keyword, since it's part of C++ */
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
# define __hwloc_inline inline
|
|
#elif defined(_MSC_VER) || defined(__HP_cc)
|
|
# define __hwloc_inline __inline
|
|
#else
|
|
# define __hwloc_inline __inline__
|
|
#endif
|
|
|
|
/*
|
|
* Note: this is public. We can not assume anything from the compiler used
|
|
* by the application and thus the HWLOC_HAVE_* macros below are not
|
|
* fetched from the autoconf result here. We only automatically use a few
|
|
* well-known easy cases.
|
|
*/
|
|
|
|
/* Some handy constants to make the logic below a little more readable */
|
|
#if defined(__cplusplus) && \
|
|
(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR >= 4))
|
|
#define GXX_ABOVE_3_4 1
|
|
#else
|
|
#define GXX_ABOVE_3_4 0
|
|
#endif
|
|
|
|
#if !defined(__cplusplus) && \
|
|
(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
|
|
#define GCC_ABOVE_2_95 1
|
|
#else
|
|
#define GCC_ABOVE_2_95 0
|
|
#endif
|
|
|
|
#if !defined(__cplusplus) && \
|
|
(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
|
|
#define GCC_ABOVE_2_96 1
|
|
#else
|
|
#define GCC_ABOVE_2_96 0
|
|
#endif
|
|
|
|
#if !defined(__cplusplus) && \
|
|
(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
|
|
#define GCC_ABOVE_3_3 1
|
|
#else
|
|
#define GCC_ABOVE_3_3 0
|
|
#endif
|
|
|
|
/* Maybe before gcc 2.95 too */
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_UNUSED
|
|
#define __HWLOC_HAVE_ATTRIBUTE_UNUSED HWLOC_HAVE_ATTRIBUTE_UNUSED
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_UNUSED (GXX_ABOVE_3_4 || GCC_ABOVE_2_95)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_UNUSED 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_UNUSED
|
|
# define __hwloc_attribute_unused __attribute__((__unused__))
|
|
#else
|
|
# define __hwloc_attribute_unused
|
|
#endif
|
|
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_MALLOC
|
|
#define __HWLOC_HAVE_ATTRIBUTE_MALLOC HWLOC_HAVE_ATTRIBUTE_MALLOC
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_MALLOC (GXX_ABOVE_3_4 || GCC_ABOVE_2_96)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_MALLOC 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_MALLOC
|
|
# define __hwloc_attribute_malloc __attribute__((__malloc__))
|
|
#else
|
|
# define __hwloc_attribute_malloc
|
|
#endif
|
|
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_CONST
|
|
#define __HWLOC_HAVE_ATTRIBUTE_CONST HWLOC_HAVE_ATTRIBUTE_CONST
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_CONST (GXX_ABOVE_3_4 || GCC_ABOVE_2_95)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_CONST 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_CONST
|
|
# define __hwloc_attribute_const __attribute__((__const__))
|
|
#else
|
|
# define __hwloc_attribute_const
|
|
#endif
|
|
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_PURE
|
|
#define __HWLOC_HAVE_ATTRIBUTE_PURE HWLOC_HAVE_ATTRIBUTE_PURE
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_PURE (GXX_ABOVE_3_4 || GCC_ABOVE_2_96)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_PURE 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_PURE
|
|
# define __hwloc_attribute_pure __attribute__((__pure__))
|
|
#else
|
|
# define __hwloc_attribute_pure
|
|
#endif
|
|
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_DEPRECATED
|
|
#define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED HWLOC_HAVE_ATTRIBUTE_DEPRECATED
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED (GXX_ABOVE_3_4 || GCC_ABOVE_3_3)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_DEPRECATED 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_DEPRECATED
|
|
# define __hwloc_attribute_deprecated __attribute__((__deprecated__))
|
|
#else
|
|
# define __hwloc_attribute_deprecated
|
|
#endif
|
|
|
|
#ifdef HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
|
|
#define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
|
|
#elif defined(__GNUC__)
|
|
# define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS (GXX_ABOVE_3_4 || GCC_ABOVE_3_3)
|
|
#else
|
|
# define __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS 0
|
|
#endif
|
|
#if __HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS
|
|
# define __hwloc_attribute_may_alias __attribute__((__may_alias__))
|
|
#else
|
|
# define __hwloc_attribute_may_alias
|
|
#endif
|
|
|
|
#ifdef HWLOC_C_HAVE_VISIBILITY
|
|
# if HWLOC_C_HAVE_VISIBILITY
|
|
# define HWLOC_DECLSPEC __attribute__((__visibility__("default")))
|
|
# else
|
|
# define HWLOC_DECLSPEC
|
|
# endif
|
|
#else
|
|
# define HWLOC_DECLSPEC
|
|
#endif
|
|
|
|
/* Defined to 1 on Linux */
|
|
#define HWLOC_LINUX_SYS 1
|
|
|
|
/* Defined to 1 if the CPU_SET macro works */
|
|
#define HWLOC_HAVE_CPU_SET 1
|
|
|
|
/* Defined to 1 if you have the `windows.h' header. */
|
|
/* #undef HWLOC_HAVE_WINDOWS_H */
|
|
#define hwloc_pid_t pid_t
|
|
#define hwloc_thread_t pthread_t
|
|
|
|
#ifdef HWLOC_HAVE_WINDOWS_H
|
|
|
|
# include <windows.h>
|
|
typedef DWORDLONG hwloc_uint64_t;
|
|
|
|
#else /* HWLOC_HAVE_WINDOWS_H */
|
|
|
|
# ifdef hwloc_thread_t
|
|
# include <pthread.h>
|
|
# endif /* hwloc_thread_t */
|
|
|
|
/* Defined to 1 if you have the <stdint.h> header file. */
|
|
# define HWLOC_HAVE_STDINT_H 1
|
|
|
|
# include <unistd.h>
|
|
# ifdef HWLOC_HAVE_STDINT_H
|
|
# include <stdint.h>
|
|
# endif
|
|
typedef uint64_t hwloc_uint64_t;
|
|
|
|
#endif /* HWLOC_HAVE_WINDOWS_H */
|
|
|
|
/* Whether we need to re-define all the hwloc public symbols or not */
|
|
#define HWLOC_SYM_TRANSFORM 0
|
|
|
|
/* The hwloc symbol prefix */
|
|
#define HWLOC_SYM_PREFIX hwloc_
|
|
|
|
/* The hwloc symbol prefix in all caps */
|
|
#define HWLOC_SYM_PREFIX_CAPS HWLOC_
|
|
|
|
#endif /* HWLOC_CONFIG_H */
|