use signed int for Kokkos array size
This commit is contained in:
parent
00de932454
commit
e6c200a2d3
@ -9,7 +9,7 @@
|
||||
|
||||
template <class T>
|
||||
KokkosStream<T>::KokkosStream(
|
||||
const unsigned int ARRAY_SIZE, const int device_index)
|
||||
const int ARRAY_SIZE, const int device_index)
|
||||
: array_size(ARRAY_SIZE)
|
||||
{
|
||||
Kokkos::initialize();
|
||||
|
||||
@ -22,7 +22,7 @@ class KokkosStream : public Stream<T>
|
||||
{
|
||||
protected:
|
||||
// Size of arrays
|
||||
unsigned int array_size;
|
||||
int array_size;
|
||||
|
||||
// Device side pointers to arrays
|
||||
typename Kokkos::View<T*>* d_a;
|
||||
@ -34,7 +34,7 @@ class KokkosStream : public Stream<T>
|
||||
|
||||
public:
|
||||
|
||||
KokkosStream(const unsigned int, const int);
|
||||
KokkosStream(const int, const int);
|
||||
~KokkosStream();
|
||||
|
||||
virtual void copy() override;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user