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