use signed array size for SYCL
This commit is contained in:
parent
20c3284629
commit
9a69d3d5d9
@ -17,7 +17,7 @@ std::vector<device> devices;
|
|||||||
void getDeviceList(void);
|
void getDeviceList(void);
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
SYCLStream<T>::SYCLStream(const unsigned int ARRAY_SIZE, const int device_index)
|
SYCLStream<T>::SYCLStream(const int ARRAY_SIZE, const int device_index)
|
||||||
{
|
{
|
||||||
if (!cached)
|
if (!cached)
|
||||||
getDeviceList();
|
getDeviceList();
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class SYCLStream : public Stream<T>
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Size of arrays
|
// Size of arrays
|
||||||
unsigned int array_size;
|
int array_size;
|
||||||
|
|
||||||
// SYCL objects
|
// SYCL objects
|
||||||
cl::sycl::queue *queue;
|
cl::sycl::queue *queue;
|
||||||
@ -53,7 +53,7 @@ class SYCLStream : public Stream<T>
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SYCLStream(const unsigned int, const int);
|
SYCLStream(const int, const int);
|
||||||
~SYCLStream();
|
~SYCLStream();
|
||||||
|
|
||||||
virtual void copy() override;
|
virtual void copy() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user