|
5 | 5 | * Contains a CMake-generated list of macros that define a particular build configuration. |
6 | 6 | */ |
7 | 7 |
|
8 | | -#ifndef GEOSX_COMMON_CONFIG_HPP |
9 | | -#define GEOSX_COMMON_CONFIG_HPP |
| 8 | +#ifndef GEOS_COMMON_CONFIG_HPP |
| 9 | +#define GEOS_COMMON_CONFIG_HPP |
10 | 10 |
|
11 | 11 | /// Enables floating point exceptions |
12 | 12 | #define GEOSX_USE_FPE |
|
17 | 17 | /// Enables use of Caliper (CMake option ENABLE_CALIPER) |
18 | 18 | #define GEOSX_USE_CALIPER |
19 | 19 |
|
| 20 | +/// Enables use of Caliper (CMake option ENABLE_ADIAK) |
| 21 | +/* #undef GEOSX_USE_ADIAK */ |
| 22 | + |
20 | 23 | /// Enables use of CHAI (CMake option ENABLE_CHAI) |
21 | 24 | #define GEOSX_USE_CHAI |
22 | 25 |
|
|
27 | 30 | #define GEOSX_USE_MPI |
28 | 31 |
|
29 | 32 | /// Enables use of OpenMP (CMake option ENABLE_OPENMP) |
30 | | -#define GEOSX_USE_OPENMP |
| 33 | +/* #undef GEOSX_USE_OPENMP */ |
31 | 34 |
|
32 | 35 | /// Enables use of CUDA (CMake option ENABLE_CUDA) |
33 | | -#define GEOSX_USE_CUDA |
| 36 | +/* #undef GEOS_USE_CUDA */ |
34 | 37 |
|
35 | 38 | /// Enables use of CUDA NVToolsExt (CMake option ENABLE_CUDA_NVTOOLSEXT) |
36 | | -#define GEOSX_USE_CUDA_NVTOOLSEXT |
| 39 | +/* #undef GEOS_USE_CUDA_NVTOOLSEXT */ |
| 40 | + |
| 41 | +/// Enables use of HIP (CMake option ENABLE_HIP) |
| 42 | +/* #undef GEOS_USE_HIP */ |
37 | 43 |
|
38 | 44 | /// Enables use of PVTPackage (CMake option ENABLE_PVTPackage) |
39 | 45 | #define GEOSX_USE_PVTPackage |
|
59 | 65 | /// Enables use of Hypre library (CMake option ENABLE_HYPRE) |
60 | 66 | #define GEOSX_USE_HYPRE |
61 | 67 |
|
62 | | -/// Macro defined when using cuda in HYPRE (CMake option ENABLE_HYPRE_CUDA) |
63 | | -#define GEOSX_USE_HYPRE_CUDA |
| 68 | +#if defined( GEOSX_USE_HYPRE ) |
| 69 | + /// Parsed hypre version information |
| 70 | + #define HYPRE_VERSION_MAJOR 2 |
| 71 | + /// Parsed hypre version information |
| 72 | + #define HYPRE_VERSION_MINOR 28 |
| 73 | + /// Parsed hypre version information |
| 74 | + #define HYPRE_VERSION_PATCH 0 |
| 75 | +#endif |
| 76 | + |
| 77 | +/// Denotes HYPRE using CPU |
| 78 | +#define GEOS_USE_HYPRE_CPU 0 |
| 79 | +/// Denotes HYPRE using CUDA |
| 80 | +#define GEOS_USE_HYPRE_CUDA 1 |
| 81 | +/// Denotes HYPRE using HIP |
| 82 | +#define GEOS_USE_HYPRE_HIP 2 |
| 83 | +/// Macro determining what parellel interface hypre is using |
| 84 | +#define GEOS_USE_HYPRE_DEVICE GEOS_USE_HYPRE_CPU |
| 85 | + |
| 86 | +/// Enables use of SuperLU_dist library through HYPRE (CMake option ENABLE_SUPERLU_DIST) |
| 87 | +#define GEOSX_USE_SUPERLU_DIST |
64 | 88 |
|
65 | 89 | /// Enables use of PETSc library (CMake option ENABLE_PETSC) |
66 | 90 | #define GEOSX_USE_PETSC |
|
98 | 122 | /// An integer flag representing the type that globalIndex will be aliased to. |
99 | 123 | #define GEOSX_GLOBALINDEX_TYPE_FLAG 2 |
100 | 124 |
|
| 125 | +/// The default block size for GEOSX on this platform |
| 126 | +#define GEOSX_BLOCK_SIZE 32 |
| 127 | + |
101 | 128 | /// Version information for HDF5 |
102 | 129 | #define HDF5_VERSION 1.12.1 |
103 | 130 |
|
104 | 131 | /// Version information for Conduit |
105 | 132 | #define Conduit_VERSION 0.8.6 |
106 | 133 |
|
107 | 134 | /// Version information for RAJA |
108 | | -#define RAJA_VERSION 2022.3.0 |
| 135 | +#define RAJA_VERSION 2022.10.5 |
109 | 136 |
|
110 | 137 | /// Version information for umpire |
111 | | -#define umpire_VERSION 2022.3.0 |
| 138 | +#define umpire_VERSION 2022.10.0 |
112 | 139 |
|
113 | 140 | /// Version information for chai |
114 | 141 | /* #undef chai_VERSION */ |
|
125 | 152 | /// Version information for ParMetis |
126 | 153 | #define PARAMETIS_VERSION 4.0.3 |
127 | 154 |
|
128 | | -/// Version information for scotch |
| 155 | +/// Version information for scotch |
129 | 156 | #define scotch_VERSION 6.0.9 |
130 | 157 |
|
131 | 158 | /// Version information for superlu_dist |
|
135 | 162 | #define suitesparse_VERSION 5.7.9 |
136 | 163 |
|
137 | 164 | /// Version information for VTK |
138 | | -#define VTK_VERSION 9.2.20230310 |
| 165 | +#define VTK_VERSION 9.2.20230719 |
139 | 166 |
|
140 | 167 | /// Version information for fmt |
141 | | -#define fmt_VERSION 8.0.1 |
| 168 | +#define fmt_VERSION 9.1.0 |
142 | 169 |
|
143 | 170 | /// Version information for python |
144 | | -/* #undef Python3_VERSION */ |
| 171 | +#define Python3_VERSION 3.11.3 |
145 | 172 |
|
146 | 173 | /// Version information for CUDAToolkit |
147 | 174 | /* #undef CUDAToolkit_VERSION */ |
148 | 175 |
|
| 176 | +#if defined(GEOS_USE_CUDA) || defined(GEOS_USE_HIP) |
| 177 | +// This needs to be placed into this header in order to appropriately replace |
| 178 | +// the old usage of GEOS_USE_CUDA, since we detect whether it is defined |
| 179 | +// rather than a value, not having it in the *same* header can cauase nebulous |
| 180 | +// compilation problems including the USD of arrays changing depending the scope |
| 181 | +#define GEOS_USE_DEVICE |
| 182 | +#endif |
149 | 183 |
|
150 | | -#endif /* GEOSX_CONFIG_HPP */ |
| 184 | +#endif /* GEOS_CONFIG_HPP */ |
151 | 185 |
|
0 commit comments