|
9 | 9 |
|
10 | 10 | #pragma once |
11 | 11 |
|
12 | | -#include <hpx/config/defines.hpp> |
13 | 12 | #include <hpx/config/compiler_specific.hpp> |
| 13 | +#include <hpx/config/defines.hpp> |
14 | 14 | #include <hpx/config/modules_enabled.hpp> |
15 | 15 |
|
16 | | -@cxx_standard_headers@ |
| 16 | +@cxx_standard_headers @ |
17 | 17 | #if defined(HPX_HAVE_STDEXEC) |
18 | | -# if defined(HPX_GCC_VERSION) |
19 | | -# pragma GCC diagnostic push |
20 | | -# pragma GCC diagnostic ignored "-Wall" |
21 | | -# pragma GCC diagnostic ignored "-Wextra" |
22 | | -# pragma GCC diagnostic ignored "-Wmissing-braces" |
23 | | -# elif defined(HPX_CLANG_VERSION) |
24 | | -# pragma clang diagnostic push |
25 | | -# pragma clang diagnostic ignored "-Weverything" |
26 | | -# endif |
| 18 | +#if defined(HPX_GCC_VERSION) |
| 19 | +#pragma GCC diagnostic push |
| 20 | +#pragma GCC diagnostic ignored "-Wall" |
| 21 | +#pragma GCC diagnostic ignored "-Wextra" |
| 22 | +#pragma GCC diagnostic ignored "-Wmissing-braces" |
| 23 | +#elif defined(HPX_CLANG_VERSION) |
| 24 | +#pragma clang diagnostic push |
| 25 | +#pragma clang diagnostic ignored "-Weverything" |
| 26 | +#endif |
27 | 27 |
|
28 | | -# include <stdexec/execution.hpp> |
| 28 | +#include <stdexec/execution.hpp> |
29 | 29 |
|
30 | | -# if defined(HPX_GCC_VERSION) |
31 | | -# pragma GCC diagnostic pop |
32 | | -# elif defined(HPX_CLANG_VERSION) |
33 | | -# pragma clang diagnostic pop |
34 | | -# endif |
| 30 | +#if defined(HPX_GCC_VERSION) |
| 31 | +#pragma GCC diagnostic pop |
| 32 | +#elif defined(HPX_CLANG_VERSION) |
| 33 | +#pragma clang diagnostic pop |
| 34 | +#endif |
35 | 35 | #endif |
36 | 36 |
|
37 | 37 | #if defined(HPX_HAVE_CXX20_COROUTINES) |
38 | | -# if defined(__has_include) |
39 | | -# if __has_include(<coroutine>) |
40 | | -# include <coroutine> |
41 | | -# elif __has_include(<experimental/coroutine>) |
42 | | -# include <experimental/coroutine> |
43 | | -# endif |
44 | | -# endif |
| 38 | +#if defined(__has_include) |
| 39 | +#if __has_include(<coroutine>) |
| 40 | +#include <coroutine> |
| 41 | +#elif __has_include(<experimental/coroutine>) |
| 42 | +#include <experimental/coroutine> |
| 43 | +#endif |
45 | 44 | #endif |
46 | | - |
47 | | -#if defined(HPX_HAVE_CXX20_STD_BIT_CAST) || defined(HPX_HAVE_CXX20_STD_ENDIAN) |
48 | | -# include <bit> |
49 | 45 | #endif |
| 46 | + |
| 47 | +#include <bit> |
50 | 48 | #include <source_location> |
51 | 49 |
|
52 | 50 | #if defined(HPX_HAVE_CXX23_STD_GENERATOR) |
53 | | -# include <generator> |
| 51 | +#include <generator> |
54 | 52 | #endif |
55 | 53 |
|
56 | 54 | #if defined(HPX_GCC_VERSION) |
57 | | -# include <cxxabi.h> |
| 55 | +#include <cxxabi.h> |
58 | 56 | #endif |
59 | 57 |
|
60 | 58 | #if defined(HPX_WINDOWS) |
61 | | -# include <excpt.h> |
62 | | -# undef exception_info |
| 59 | +#include <excpt.h> |
| 60 | +#undef exception_info |
63 | 61 | #endif |
64 | 62 |
|
65 | 63 | #include <asio.hpp> |
66 | 64 | #include <hwloc.h> |
67 | 65 |
|
68 | 66 | #if defined(HPX_HAVE_MODULE_LIKWID) |
69 | | -# include <likwid.h> |
| 67 | +#include <likwid.h> |
70 | 68 | #endif |
71 | 69 |
|
72 | 70 | // Include MPI headers if required |
73 | 71 | #if (defined(HPX_HAVE_NETWORKING) && defined(HPX_HAVE_PARCELPORT_MPI)) || \ |
74 | 72 | defined(HPX_HAVE_MODULE_MPI_BASE) |
75 | 73 |
|
76 | | -# if defined(HPX_CLANG_VERSION) |
77 | | -# pragma clang diagnostic push |
78 | | -# pragma clang diagnostic ignored "-Wcast-qual" |
79 | | -# elif defined(HPX_GCC_VERSION) |
80 | | -# pragma GCC diagnostic push |
81 | | -# pragma GCC diagnostic ignored "-Wcast-qual" |
82 | | -# endif |
| 74 | +#if defined(HPX_CLANG_VERSION) |
| 75 | +#pragma clang diagnostic push |
| 76 | +#pragma clang diagnostic ignored "-Wcast-qual" |
| 77 | +#elif defined(HPX_GCC_VERSION) |
| 78 | +#pragma GCC diagnostic push |
| 79 | +#pragma GCC diagnostic ignored "-Wcast-qual" |
| 80 | +#endif |
83 | 81 |
|
84 | | -# include <mpi.h> |
| 82 | +#include <mpi.h> |
85 | 83 |
|
86 | | -# if defined(HPX_GCC_VERSION) |
87 | | -# pragma GCC diagnostic pop |
88 | | -# elif defined(HPX_CLANG_VERSION) |
89 | | -# pragma clang diagnostic pop |
90 | | -# endif |
| 84 | +#if defined(HPX_GCC_VERSION) |
| 85 | +#pragma GCC diagnostic pop |
| 86 | +#elif defined(HPX_CLANG_VERSION) |
| 87 | +#pragma clang diagnostic pop |
| 88 | +#endif |
91 | 89 |
|
92 | 90 | #endif |
93 | 91 |
|
94 | 92 | // Include LCI headers if required |
95 | 93 | #if (defined(HPX_HAVE_NETWORKING) && defined(HPX_HAVE_PARCELPORT_LCI)) || \ |
96 | 94 | defined(HPX_HAVE_MODULE_LCI_BASE) |
97 | | -# include "lci.hpp" |
98 | | -# include "lct.h" |
| 95 | +#include "lci.hpp" |
| 96 | +#include "lct.h" |
99 | 97 | #endif |
100 | 98 |
|
101 | 99 | #if defined(HPX_HAVE_MODULE_ASYNC_CUDA) |
102 | | -# if defined(HPX_HAVE_CUDA) && defined(HPX_HAVE_GPUBLAS) |
103 | | -# include <cublas_v2.h> |
104 | | -# elif defined(HPX_HAVE_HIP) && defined(HPX_HAVE_GPUBLAS) |
105 | | -# include <hipblas.h> |
106 | | -# endif |
| 100 | +#if defined(HPX_HAVE_CUDA) && defined(HPX_HAVE_GPUBLAS) |
| 101 | +#include <cublas_v2.h> |
| 102 | +#elif defined(HPX_HAVE_HIP) && defined(HPX_HAVE_GPUBLAS) |
| 103 | +#include <hipblas.h> |
| 104 | +#endif |
107 | 105 | #endif |
108 | 106 |
|
109 | 107 | #if defined(HPX_HAVE_MODULE_THRUST) |
110 | | -# include <hpx/thrust/thrust_headers.hpp> |
| 108 | +#include <hpx/thrust/thrust_headers.hpp> |
111 | 109 | #endif |
112 | 110 |
|
113 | 111 | #if defined(HPX_HAVE_MM_PREFETCH) |
114 | | -# if defined(HPX_MSVC) |
115 | | -# include <intrin.h> |
116 | | -# endif |
117 | | -# if defined(HPX_GCC_VERSION) |
118 | | -# include <emmintrin.h> |
119 | | -# endif |
| 112 | +#if defined(HPX_MSVC) |
| 113 | +#include <intrin.h> |
| 114 | +#endif |
| 115 | +#if defined(HPX_GCC_VERSION) |
| 116 | +#include <emmintrin.h> |
| 117 | +#endif |
120 | 118 | #endif |
121 | 119 |
|
122 | 120 | #if defined(HPX_HAVE_DATAPAR) |
123 | | -# if defined(HPX_HAVE_DATAPAR_EVE) |
124 | | -# include <eve/eve.hpp> |
125 | | -# include <eve/memory/aligned_ptr.hpp> |
126 | | -# endif |
127 | | -# if defined(HPX_HAVE_DATAPAR_STD_EXPERIMENTAL_SIMD) |
128 | | -# include <experimental/simd> |
129 | | -# endif |
130 | | -# if defined(HPX_HAVE_DATAPAR_VC) |
131 | | -# include <Vc/Vc> |
132 | | -# include <Vc/global.h> |
133 | | -# endif |
| 121 | +#if defined(HPX_HAVE_DATAPAR_EVE) |
| 122 | +#include <eve/eve.hpp> |
| 123 | +#include <eve/memory/aligned_ptr.hpp> |
| 124 | +#endif |
| 125 | +#if defined(HPX_HAVE_DATAPAR_STD_EXPERIMENTAL_SIMD) |
| 126 | +#include <experimental/simd> |
| 127 | +#endif |
| 128 | +#if defined(HPX_HAVE_DATAPAR_VC) |
| 129 | +#include <Vc/Vc> |
| 130 | +#include <Vc/global.h> |
| 131 | +#endif |
134 | 132 | #endif |
135 | 133 |
|
136 | 134 | #if defined(HPX_HAVE_DISTRIBUTED_RUNTIME) |
137 | | -# include <boost/accumulators/accumulators.hpp> |
| 135 | +#include <boost/accumulators/accumulators.hpp> |
138 | 136 | #endif |
0 commit comments