alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
hwlocConfig.hpp
Go to the documentation of this file.
1/* Copyright 2026 René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
8
9
10#if !defined(ALPAKA_DISABLE_HWLOC)
11# if __has_include(<hwloc.h>)
12# include <hwloc.h>
13# if !defined(ALPAKA_HAS_HWLOC)
14# define ALPAKA_HAS_HWLOC 1
15# endif
16# endif
17#endif
18
19// In case it is not already set, set it to disabled, to ensure that his header is included wherever the macro is
20// used. If this header is not included compiler flag `-Wundef` will show an error.
21#if !defined(ALPAKA_HAS_HWLOC)
22# define ALPAKA_HAS_HWLOC 0
23#endif