From cf4c101307d2f97debbee22fb4354cb385726040 Mon Sep 17 00:00:00 2001 From: "Andrew M. Bradley" Date: Fri, 3 Sep 2021 15:35:26 -0600 Subject: [PATCH] HAVE_CUDA -> ENABLE_CUDA --- cedr/cedr_caas.hpp | 4 ++-- cedr/cedr_kokkos.hpp | 2 +- siqk/siqk_defs.hpp | 10 ++-------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/cedr/cedr_caas.hpp b/cedr/cedr_caas.hpp index dbba1b3..cc9cf2f 100644 --- a/cedr/cedr_caas.hpp +++ b/cedr/cedr_caas.hpp @@ -18,8 +18,8 @@ class CAAS : public CDR { typedef typename cedr::impl::DeviceType::type Device; typedef CAAS Me; typedef std::shared_ptr Ptr; - typedef Kokkos::View RealList; - typedef Kokkos::View IntList; + typedef Kokkos::View RealList; + typedef Kokkos::View IntList; public: diff --git a/cedr/cedr_kokkos.hpp b/cedr/cedr_kokkos.hpp index 95ee85b..82f24b8 100644 --- a/cedr/cedr_kokkos.hpp +++ b/cedr/cedr_kokkos.hpp @@ -74,7 +74,7 @@ struct DeviceType { typename ExeSpace::memory_space> type; }; -#ifdef KOKKOS_HAVE_CUDA +#ifdef KOKKOS_ENABLE_CUDA typedef Kokkos::Device DefaultDeviceType; diff --git a/siqk/siqk_defs.hpp b/siqk/siqk_defs.hpp index e716f06..dc4d581 100644 --- a/siqk/siqk_defs.hpp +++ b/siqk/siqk_defs.hpp @@ -21,12 +21,6 @@ // Always want this for GPU. #define SIQK_NONRECURSIVE -#ifdef KOKKOS_HAVE_CUDA -# define KOKKOS_CONSTANT __constant__ __device__ -#else -# define KOKKOS_CONSTANT -#endif - namespace siqk { namespace ko = Kokkos; #define pr(m) do { \ @@ -109,7 +103,7 @@ KOKKOS_INLINE_FUNCTION static void message (const char* const msg) typedef int Int; typedef double Real; -#ifdef KOKKOS_HAVE_CUDA +#ifdef KOKKOS_ENABLE_CUDA typedef ko::LayoutLeft Layout; #else typedef ko::LayoutRight Layout; @@ -144,7 +138,7 @@ template struct InExeSpace { typedef typename VT::HostMirror type; }; -#ifdef KOKKOS_HAVE_CUDA +#ifdef KOKKOS_ENABLE_CUDA // A 1D slice of an array. template KOKKOS_FORCEINLINE_FUNCTION ko::View