[SYCL 2020] Make array size a size_t
This commit is contained in:
parent
9f38177e1b
commit
5d9e408a06
@ -15,7 +15,7 @@ std::vector<sycl::device> devices;
|
|||||||
void getDeviceList(void);
|
void getDeviceList(void);
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
SYCLStream<T>::SYCLStream(const int ARRAY_SIZE, const int device_index)
|
SYCLStream<T>::SYCLStream(const size_t ARRAY_SIZE, const int device_index)
|
||||||
: array_size {ARRAY_SIZE},
|
: array_size {ARRAY_SIZE},
|
||||||
d_a {ARRAY_SIZE},
|
d_a {ARRAY_SIZE},
|
||||||
d_b {ARRAY_SIZE},
|
d_b {ARRAY_SIZE},
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class SYCLStream : public Stream<T>
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Size of arrays
|
// Size of arrays
|
||||||
int array_size;
|
size_t array_size;
|
||||||
|
|
||||||
// SYCL objects
|
// SYCL objects
|
||||||
// Queue is a pointer because we allow device selection
|
// Queue is a pointer because we allow device selection
|
||||||
@ -35,7 +35,7 @@ class SYCLStream : public Stream<T>
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SYCLStream(const int, const int);
|
SYCLStream(const size_t, const int);
|
||||||
~SYCLStream() = default;
|
~SYCLStream() = default;
|
||||||
|
|
||||||
virtual void copy() override;
|
virtual void copy() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user