Skip to content

Commit 70a4ce2

Browse files
authored
Merge pull request #44 from E3SM-Project/develop
Develop
2 parents e732872 + 3845699 commit 70a4ce2

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

cedr/cedr_caas.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class CAAS : public CDR {
1818
typedef typename cedr::impl::DeviceType<ExeSpace>::type Device;
1919
typedef CAAS<ExeSpace> Me;
2020
typedef std::shared_ptr<Me> Ptr;
21-
typedef Kokkos::View<Real*, Kokkos::LayoutLeft, Device> RealList;
22-
typedef Kokkos::View<Int*, Kokkos::LayoutLeft, Device> IntList;
21+
typedef Kokkos::View<Real*, Kokkos::LayoutRight, Device> RealList;
22+
typedef Kokkos::View<Int*, Kokkos::LayoutRight, Device> IntList;
2323

2424
public:
2525

cedr/cedr_kokkos.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct DeviceType {
7474
typename ExeSpace::memory_space> type;
7575
};
7676

77-
#ifdef KOKKOS_HAVE_CUDA
77+
#ifdef KOKKOS_ENABLE_CUDA
7878
typedef Kokkos::Device<Kokkos::CudaSpace::execution_space,
7979
Kokkos::CudaSpace::memory_space> DefaultDeviceType;
8080

siqk/siqk_defs.hpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
// Always want this for GPU.
2222
#define SIQK_NONRECURSIVE
2323

24-
#ifdef KOKKOS_HAVE_CUDA
25-
# define KOKKOS_CONSTANT __constant__ __device__
26-
#else
27-
# define KOKKOS_CONSTANT
28-
#endif
29-
3024
namespace siqk {
3125
namespace ko = Kokkos;
3226
#define pr(m) do { \
@@ -109,7 +103,7 @@ KOKKOS_INLINE_FUNCTION static void message (const char* const msg)
109103
typedef int Int;
110104
typedef double Real;
111105

112-
#ifdef KOKKOS_HAVE_CUDA
106+
#ifdef KOKKOS_ENABLE_CUDA
113107
typedef ko::LayoutLeft Layout;
114108
#else
115109
typedef ko::LayoutRight Layout;
@@ -144,7 +138,7 @@ template <typename VT> struct InExeSpace<VT, ko::HostSpace> {
144138
typedef typename VT::HostMirror type;
145139
};
146140

147-
#ifdef KOKKOS_HAVE_CUDA
141+
#ifdef KOKKOS_ENABLE_CUDA
148142
// A 1D slice of an array.
149143
template <typename VT> KOKKOS_FORCEINLINE_FUNCTION
150144
ko::View<typename VT::value_type*, ko::LayoutStride, typename VT::device_type,

0 commit comments

Comments
 (0)