From e6c200a2d39421df487ddd2e2e68e6157fd4a700 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Tue, 12 Jan 2021 10:13:53 +0000 Subject: [PATCH] use signed int for Kokkos array size --- KokkosStream.cpp | 2 +- KokkosStream.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/KokkosStream.cpp b/KokkosStream.cpp index 19d4b24..09c1eaf 100644 --- a/KokkosStream.cpp +++ b/KokkosStream.cpp @@ -9,7 +9,7 @@ template KokkosStream::KokkosStream( - const unsigned int ARRAY_SIZE, const int device_index) + const int ARRAY_SIZE, const int device_index) : array_size(ARRAY_SIZE) { Kokkos::initialize(); diff --git a/KokkosStream.hpp b/KokkosStream.hpp index 1470cf4..e88622c 100644 --- a/KokkosStream.hpp +++ b/KokkosStream.hpp @@ -22,7 +22,7 @@ class KokkosStream : public Stream { protected: // Size of arrays - unsigned int array_size; + int array_size; // Device side pointers to arrays typename Kokkos::View* d_a; @@ -34,7 +34,7 @@ class KokkosStream : public Stream public: - KokkosStream(const unsigned int, const int); + KokkosStream(const int, const int); ~KokkosStream(); virtual void copy() override;