use signed int for array size in RAJA
This commit is contained in:
parent
87ab797490
commit
15001000c5
@ -15,7 +15,7 @@ using RAJA::RangeSegment;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <class T>
|
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)
|
: array_size(ARRAY_SIZE)
|
||||||
{
|
{
|
||||||
RangeSegment seg(0, ARRAY_SIZE);
|
RangeSegment seg(0, ARRAY_SIZE);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class RAJAStream : public Stream<T>
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Size of arrays
|
// Size of arrays
|
||||||
unsigned int array_size;
|
int array_size;
|
||||||
|
|
||||||
// Contains iteration space
|
// Contains iteration space
|
||||||
RAJA::IndexSet index_set;
|
RAJA::IndexSet index_set;
|
||||||
@ -44,7 +44,7 @@ class RAJAStream : public Stream<T>
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
RAJAStream(const unsigned int, const int);
|
RAJAStream(const int, const int);
|
||||||
~RAJAStream();
|
~RAJAStream();
|
||||||
|
|
||||||
virtual void copy() override;
|
virtual void copy() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user