Skip to content

Commit 69a5aa4

Browse files
committed
Change METAPHYSICL_HAVE_KOKKKOS to METAPHYSICL_KOKKOS_COMPILATION
1 parent 21a1df9 commit 69a5aa4

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

m4/kokkos.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AC_DEFUN([CONFIGURE_KOKKOS],
1515
[KOKKOS_PREFIX="$withval"], [KOKKOS_PREFIX=""])
1616
1717
AS_IF([test "x$KOKKOS_PREFIX" != "x"], [
18-
KOKKOS_CPPFLAGS="-DMETAPHYSICL_HAVE_KOKKOS -I$KOKKOS_PREFIX/include"
18+
KOKKOS_CPPFLAGS="-DMETAPHYSICL_KOKKOS_COMPILATION -I$KOKKOS_PREFIX/include"
1919
KOKKOS_CXXFLAGS="--forward-unknown-to-host-compiler $KOKKOS_CXXFLAGS"
2020
KOKKOS_LDFLAGS="--forward-unknown-to-host-compiler -L$KOKKOS_PREFIX/lib -Wl,-rpath,$KOKKOS_PREFIX/lib"
2121
KOKKOS_LIBS="-lkokkoscore"

src/core/include/metaphysicl/metaphysicl_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef METAPHYSICL_DEVICE_H
22
#define METAPHYSICL_DEVICE_H
33

4-
#ifdef METAPHYSICL_HAVE_KOKKOS
4+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
55

66
#include <Kokkos_Array.hpp>
77
#include <Kokkos_Macros.hpp>

src/numerics/include/metaphysicl/semidynamicsparsenumberarray_decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class SemiDynamicSparseNumberArrayGeneric
7575

7676
template <typename T, typename I, typename N>
7777
using SemiDynamicSparseNumberArray = SemiDynamicSparseNumberArrayGeneric<T, I, N, DynamicStdArrayWrapper<T, N::size>>;
78-
#ifdef METAPHYSICL_HAVE_KOKKOS
78+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
7979
template <typename T, typename I, typename N>
8080
using KokkosSemiDynamicSparseNumberArray = SemiDynamicSparseNumberArrayGeneric<T, I, N, DynamicKokkosArrayWrapper<T, N::size>>;
8181
#endif

src/utilities/include/metaphysicl/dynamic_kokkos_array_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "metaphysicl/metaphysicl_asserts.h"
2929
#include "metaphysicl/metaphysicl_config.h"
3030

31-
#ifdef METAPHYSICL_HAVE_KOKKOS
31+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
3232
#include <Kokkos_Array.hpp>
3333

3434
namespace MetaPhysicL {

src/utilities/include/metaphysicl/metaphysicl_math.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define METAPHYSICL_MATH_H
1010

1111
#include "metaphysicl/metaphysicl_device.h"
12-
#ifdef METAPHYSICL_HAVE_KOKKOS
12+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
1313
#include <Kokkos_Core.hpp>
1414
#else
1515
#include <cmath>
@@ -31,7 +31,7 @@ namespace math {
3131
} \
3232
}
3333

34-
#ifdef METAPHYSICL_HAVE_KOKKOS
34+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
3535
#define METAPHYSICL_MATH_DETAIL_UNQUALIFIED_UNARY(NAME) \
3636
namespace detail { \
3737
template <class X> METAPHYSICL_INLINE auto unqualified_##NAME(const X &x) { \
@@ -48,7 +48,7 @@ namespace math {
4848
METAPHYSICL_MATH_DETAIL_UNQUALIFIED_UNARY_STD(NAME)
4949
#endif
5050

51-
#ifdef METAPHYSICL_HAVE_KOKKOS
51+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
5252
#define METAPHYSICL_MATH_DETAIL_UNQUALIFIED_BINARY(NAME) \
5353
namespace detail { \
5454
template <class X, class Y> \

src/utilities/include/metaphysicl/metaphysicl_numeric_limits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef METAPHYSICL_NUMERIC_LIMITS
22
#define METAPHYSICL_NUMERIC_LIMITS
33

4-
#ifdef METAPHYSICL_HAVE_KOKKOS
4+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
55

66
#include "metaphysicl/metaphysicl_device.h"
77
#include <Kokkos_NumericTraits.hpp>
@@ -73,6 +73,6 @@ template <typename T> class numeric_limits {
7373

7474
} // namespace MetaPhysicL
7575

76-
#endif // METAPHYSICL_HAVE_KOKKOS
76+
#endif // METAPHYSICL_KOKKOS_COMPILATION
7777

7878
#endif // METAPHYSICL_NUMERIC_LIMITS

test/kokkos_sparse_derivs_unit.K

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "metaphysicl/metaphysicl_config.h"
66

7-
#ifdef METAPHYSICL_HAVE_KOKKOS
7+
#ifdef METAPHYSICL_KOKKOS_COMPILATION
88

99
#include "metaphysicl/dualsemidynamicsparsenumberarray.h"
1010
#include "metaphysicl/metaphysicl_exceptions.h"
@@ -153,4 +153,4 @@ int main(int argc, char *argv[]) {
153153

154154
int main() { return 0; }
155155

156-
#endif // METAPHYSICL_HAVE_KOKKOS
156+
#endif // METAPHYSICL_KOKKOS_COMPILATION

0 commit comments

Comments
 (0)