From 15001000c52c9c324aa49a5f1be0e6d24b34fa4b Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Tue, 12 Jan 2021 10:25:45 +0000 Subject: [PATCH] use signed int for array size in RAJA --- RAJAStream.cpp | 2 +- RAJAStream.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RAJAStream.cpp b/RAJAStream.cpp index 395a6ee..2d24f2a 100644 --- a/RAJAStream.cpp +++ b/RAJAStream.cpp @@ -15,7 +15,7 @@ using RAJA::RangeSegment; #endif template -RAJAStream::RAJAStream(const unsigned int ARRAY_SIZE, const int device_index) +RAJAStream::RAJAStream(const int ARRAY_SIZE, const int device_index) : array_size(ARRAY_SIZE) { RangeSegment seg(0, ARRAY_SIZE); diff --git a/RAJAStream.hpp b/RAJAStream.hpp index b5cb586..bfcc70f 100644 --- a/RAJAStream.hpp +++ b/RAJAStream.hpp @@ -32,7 +32,7 @@ class RAJAStream : public Stream { protected: // Size of arrays - unsigned int array_size; + int array_size; // Contains iteration space RAJA::IndexSet index_set; @@ -44,7 +44,7 @@ class RAJAStream : public Stream public: - RAJAStream(const unsigned int, const int); + RAJAStream(const int, const int); ~RAJAStream(); virtual void copy() override;