use signed int for array size in RAJA

This commit is contained in:
Tom Deakin 2021-01-12 10:25:45 +00:00
parent 87ab797490
commit 15001000c5
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ using RAJA::RangeSegment;
#endif
template <class T>
RAJAStream<T>::RAJAStream(const unsigned int ARRAY_SIZE, const int device_index)
RAJAStream<T>::RAJAStream(const int ARRAY_SIZE, const int device_index)
: array_size(ARRAY_SIZE)
{
RangeSegment seg(0, ARRAY_SIZE);

View File

@ -32,7 +32,7 @@ class RAJAStream : public Stream<T>
{
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<T>
public:
RAJAStream(const unsigned int, const int);
RAJAStream(const int, const int);
~RAJAStream();
virtual void copy() override;